X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fcron_validations.php;h=3768240948e507ca460860c6ad35031fe653fea0;hb=cdafa49e854542f19a2a37ad64a9964360982dea;hp=415260b8d3f80ab95de8cc06461c7cf3be4edf89;hpb=a698a3fc19026fa6453390978c06951d1adfc737;p=platal.git diff --git a/bin/cron/cron_validations.php b/bin/cron/cron_validations.php index 415260b..3768240 100755 --- a/bin/cron/cron_validations.php +++ b/bin/cron/cron_validations.php @@ -1,7 +1,7 @@ -#!/usr/bin/php4 -q +#!/usr/bin/php5 -q fetchOneRow(); @@ -36,13 +36,13 @@ if (empty($nb)) { exit; } -$mymail = new HermesMailer(); +$mymail = new PlMailer(); $mymail->setFrom('validation@polytechnique.org'); $mymail->addTo("validation@polytechnique.org"); -$mymail->setSubject((empty($nbveryold)?"":"[urgent] ")."il y a $nb validations non effectuées"); +$mymail->setSubject((empty($nbveryold)?"":"[urgent] ")."il y a $nb validations non effectuées"); $message = - "il y a $nb validation à effectuer \n" + "il y a $nb validation à effectuer \n" .(empty($nbold)?"":"dont $nbold depuis le dernier mail !!!\n") .(empty($nbveryold)?"":"et dont *$nbveryold* sont en retard de plus de 6h !!!") ."\n" @@ -51,4 +51,5 @@ $message = $message = wordwrap($message,78); $mymail->setTxtBody($message); $mymail->send(); +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>