From 228668301297a08062dc0624af06d2e9d544b868 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 1 May 2011 00:59:50 +0200 Subject: [PATCH] Prevents multiple Ccs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- bin/cron/cron_xnet_accounts.php | 1 + configs/mails.conf | 1 - templates/xnet/account.mail.tpl | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/cron/cron_xnet_accounts.php b/bin/cron/cron_xnet_accounts.php index 4ccc4fc..96543ff 100755 --- a/bin/cron/cron_xnet_accounts.php +++ b/bin/cron/cron_xnet_accounts.php @@ -31,6 +31,7 @@ $users = XDB::fetchAllAssoc('SELECT a.uid, a.hruid, r.hash, r.group_name, r.sen ORDER BY r.date, a.uid'); $mailer = new PlMailer('xnet/account.mail.tpl'); +$mailer->addCc('validation+xnet_account@polytechnique.org'); $i = 0; foreach ($users as $user) { diff --git a/configs/mails.conf b/configs/mails.conf index 1bde9a6..d17d066 100644 --- a/configs/mails.conf +++ b/configs/mails.conf @@ -84,5 +84,4 @@ to=br@staff.polytechnique.org [xnet_registration] from=register@polytechnique.org -cc=validation+xnet_account@polytechnique.org subject="Inscription à Polytechnique.net" diff --git a/templates/xnet/account.mail.tpl b/templates/xnet/account.mail.tpl index 0746413..714a250 100644 --- a/templates/xnet/account.mail.tpl +++ b/templates/xnet/account.mail.tpl @@ -24,7 +24,6 @@ {if $mail_part eq 'head'} {subject text=#subject#} {from full=#from#} -{cc full=#cc#} {to addr="$to"} {elseif $mail_part eq 'text'} Bonjour, -- 2.1.4