ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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
 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

ilNotificationMailHandler::notify ( ilNotificationObject  $notification)

Reimplemented from ilNotificationHandler.

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

{
// use a specific sender or ANONYMOUS
$sender_id = (isset($notification->handlerParams['mail']['sender']) ? $notification->handlerParams['mail']['sender'] : ANONYMOUS_USER_ID);
include_once 'Services/Mail/classes/class.ilMail.php';
$mail = new ilMail($sender_id);
$mail->appendInstallationSignature(true);
$mail->sendMail(
$notification->user->getLogin(),
'',
'',
$notification->title,
$notification->longDescription,
false,
array('normal')
);
//mail($notification->user->getEmail(), $notification->title, $notification->longDescription);
}

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