ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilNotificationMailHandler.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Notifications;
22
24use 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