ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)

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

References array.

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  }
This class handles base functions for mail handling.
Create styles array
The data for the language used.

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