ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilNotificationMailHandler Class Reference

Notification handler for sending notifications the to recipients email address. More...

+ Inheritance diagram for ilNotificationMailHandler:
+ Collaboration diagram for ilNotificationMailHandler:

Public Member Functions

 notify (ilNotificationObject $notification)
 
- Public Member Functions inherited from ilNotificationHandler
 notify (ilNotificationObject $notification)
 
 showSettings ($form)
 

Detailed Description

Notification handler for sending notifications the to recipients email address.

Definition at line 7 of file class.ilNotificationMailHandler.php.

Member Function Documentation

◆ notify()

ilNotificationMailHandler::notify ( ilNotificationObject  $notification)

Reimplemented from ilNotificationHandler.

Definition at line 9 of file class.ilNotificationMailHandler.php.

10 {
11 // use a specific sender or ANONYMOUS
12 $sender_id = (isset($notification->handlerParams['mail']['sender']) ? $notification->handlerParams['mail']['sender'] : ANONYMOUS_USER_ID);
13 include_once 'Services/Mail/classes/class.ilMail.php';
14 $mail = new ilMail($sender_id);
15 $mail->appendInstallationSignature(true);
16 $mail->sendMail(
17 $notification->user->getLogin(),
18 '',
19 '',
20 $notification->title,
21 $notification->longDescription,
22 false,
23 array('normal')
24 );
25
26 //mail($notification->user->getEmail(), $notification->title, $notification->longDescription);
27 }

The documentation for this class was generated from the following file: