ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilNotificationMailHandler.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Notifications;
22
24use ilMail;
26
31{
32 public function notify(ilNotificationObject $notification): void
33 {
34 $sender_id = $notification->handlerParams['mail']['sender'] ?? ANONYMOUS_USER_ID;
35 $mail = new ilMail((int) $sender_id);
36 $mail->appendInstallationSignature(true);
37 $mail->enqueue(
38 $notification->user->getLogin(),
39 '',
40 '',
41 $notification->title,
42 $notification->longDescription,
44 );
45 }
46}
const ANONYMOUS_USER_ID
Definition: constants.php:27