Fix Notification sender (I don't understand how it has been broken...)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 13 Oct 2007 06:53:49 +0000 (08:53 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 13 Oct 2007 06:53:49 +0000 (08:53 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/cron/notifs.send.php

index 12253c5..b48682f 100755 (executable)
@@ -82,9 +82,10 @@ EOF;
 </html>
 EOF;
 
+    global $globals;
     $mailer = new PlMailer();
     $mailer->setFrom('Carnet Polytechnicien <support_carnet@' . $globals->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); }