1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 20:57:22 +02:00

Notifications par mail admin

This commit is contained in:
Yohann
2019-10-21 23:22:21 +02:00
parent 7e4a08cf48
commit b8d4c24d0c
2 changed files with 10 additions and 6 deletions

View File

@ -44,9 +44,12 @@ class Mailer
{
/** @var User $admin */
foreach (User::getAdmins() as $admin) {
if (!$admin->doReceiveAnimathMails())
continue;
$c = preg_replace("#{FIRST_NAME}#", $admin->getFirstName(), $content);
$c = preg_replace("#{SURNAME}#", $admin->getSurname(), $c);
// self::sendMail($admin->getEmail(), $subject, $c, $from);
self::sendMail($admin->getEmail(), $subject, $c, $from);
}
}