From: Florent Bruneau Date: Sat, 13 Oct 2007 06:53:49 +0000 (+0200) Subject: Fix Notification sender (I don't understand how it has been broken...) X-Git-Tag: xorg/0.9.15~36 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c4b7c2d0c741e95bb1a6992cc0e0cc371b8c1e11;p=platal.git Fix Notification sender (I don't understand how it has been broken...) Signed-off-by: Florent Bruneau --- diff --git a/bin/cron/notifs.send.php b/bin/cron/notifs.send.php index 12253c5..b48682f 100755 --- a/bin/cron/notifs.send.php +++ b/bin/cron/notifs.send.php @@ -82,9 +82,10 @@ EOF; EOF; + global $globals; $mailer = new PlMailer(); $mailer->setFrom('Carnet Polytechnicien mail->domain . '>'); - $mailer->addTo("\"$u['prenom']} {$u['nom']}\" <{$u['bestalias']}@" . $globals->mail->domain . '>'); + $mailer->addTo("\"{$u['prenom']} {$u['nom']}\" <{$u['bestalias']}@" . $globals->mail->domain . '>'); $mailer->setSubject("Notifications de la semaine $week"); $mailer->setTxtBody($text); if ($u['mail_fmt'] == 'html') { $mailer->setHtmlBody($html); }