Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
</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); }