X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Frapports_inscription.php;h=b7892cd2c5eebcab85b1ffcd7a5ad284a73cd17b;hb=b4ee37a403aa5970304b447b31a747e47f9efb18;hp=7086ee74cafea0f5d3d0828e2bd8a4d554319b85;hpb=ee68ddc1d2ff14e755623de27336cfc40fb0a29a;p=platal.git diff --git a/bin/cron/rapports_inscription.php b/bin/cron/rapports_inscription.php index 7086ee7..b7892cd 100755 --- a/bin/cron/rapports_inscription.php +++ b/bin/cron/rapports_inscription.php @@ -38,19 +38,19 @@ 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 .= "\n$c INSCRIPTIONS SOLICITÉES :\n"; $MESSAGE .= " $a utilisateurs\n $b adresses mails\n"; // --------------------------------------- $MESSAGE .= "\n\n"; -require_once('diogenes/diogenes.hermes.inc.php'); -$mailer = new HermesMailer(); -$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'); +require_once('../../classes/plmailer.php'); +$mailer = new PlMailer(); +$mailer->setSubject("$a confirmées, $b en attente et $c sollicitées"); +$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: ?>