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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user