From: Stéphane Jacob Date: Sat, 30 Apr 2011 22:59:50 +0000 (+0200) Subject: Prevents multiple Ccs. X-Git-Tag: xorg/1.1.1~43 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=228668301297a08062dc0624af06d2e9d544b868;p=platal.git Prevents multiple Ccs. Signed-off-by: Stéphane Jacob --- 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,