Prevents multiple Ccs.
authorStéphane Jacob <sj@m4x.org>
Sat, 30 Apr 2011 22:59:50 +0000 (00:59 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 30 Apr 2011 22:59:50 +0000 (00:59 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
bin/cron/cron_xnet_accounts.php
configs/mails.conf
templates/xnet/account.mail.tpl

index 4ccc4fc..96543ff 100755 (executable)
@@ -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) {
index 1bde9a6..d17d066 100644 (file)
@@ -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"
index 0746413..714a250 100644 (file)
@@ -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,