From c4b7c2d0c741e95bb1a6992cc0e0cc371b8c1e11 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 13 Oct 2007 08:53:49 +0200 Subject: [PATCH] Fix Notification sender (I don't understand how it has been broken...) Signed-off-by: Florent Bruneau --- bin/cron/notifs.send.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.1.4