ILIAS  release_8 Revision v8.23
ilNotificationMailHandler.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Notifications;
22 
24 use ilMail;
25 
30 {
31  public function notify(ilNotificationObject $notification): void
32  {
33  $sender_id = $notification->handlerParams['mail']['sender'] ?? ANONYMOUS_USER_ID;
34  $mail = new ilMail((int) $sender_id);
35  $mail->appendInstallationSignature(true);
36  $mail->enqueue(
37  $notification->user->getLogin(),
38  '',
39  '',
40  $notification->title,
41  $notification->longDescription,
42  []
43  );
44  }
45 }
const ANONYMOUS_USER_ID
Definition: constants.php:27
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...