ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilNotificationMailHandler Class Reference
+ Inheritance diagram for ilNotificationMailHandler:
+ Collaboration diagram for ilNotificationMailHandler:

Public Member Functions

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

Detailed Description

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

Member Function Documentation

ilNotificationMailHandler::notify ( ilNotificationObject  $notification)

Reimplemented from ilNotificationHandler.

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

{
$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: