ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 8 of file class.ilNotificationMailHandler.php.

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

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