Switches email related classes to the new User model.
[platal.git] / bin / cron / rapports_inscription.php
index 66d2cfe..d25f1fd 100755 (executable)
@@ -39,7 +39,7 @@ if ($b = $res->total()) {
 $res = XDB::query('SELECT COUNT(DISTINCT uid), COUNT(*) FROM register_marketing');
 list($a, $b) = $res->fetchOneRow();
 $MESSAGE .= "\n$c INSCRIPTIONS SOLICITÉES :\n";
-$MESSAGE .= "    $a utilisateurs\n    $b adresses mails\n";
+$MESSAGE .= "    $a utilisateurs\n    $b adresses email\n";
 
 // ---------------------------------------
 
@@ -48,9 +48,8 @@ $MESSAGE .= "\n\n";
 require_once('../../classes/plmailer.php');
 $mailer = new PlMailer();
 $mailer->setSubject("$a confirmées, $b en attente et $c sollicitées");
-$mailer->setFrom('register@polytechnique.org');
-$mailer->addTo('register@polytechnique.org');
-$mailer->addCc('jean-michel.yolin+register@polytechnique.org');
+$mailer->setFrom($globals->register->notif);
+$mailer->addTo($globals->register->notif);
 $mailer->setTxtBody($MESSAGE);
 $mailer->send();
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: