ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 8 of file class.ilNotificationMailHandler.php.

References array.

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  }
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: