ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilNotificationMailHandler.php
Go to the documentation of this file.
1 <?php
2 require_once 'Services/Notifications/classes/class.ilNotificationHandler.php';
3 
5  public function notify(ilNotificationObject $notification) {
6  $sender_id = (isset($notification->handlerParams['mail']['sender']) ? $notification->handlerParams['mail']['sender'] : ANONYMOUS_USER_ID);
7  include_once 'Services/Mail/classes/class.ilMail.php';
8  $mail = new ilMail($sender_id);
9  $mail->appendInstallationSignature(true);
10  $mail->sendMail(
11  $notification->user->getLogin(),
12  '',
13  '',
14  $notification->title,
15  $notification->longDescription,
16  false,
17  array('normal')
18  );
19 
20  //mail($notification->user->getEmail(), $notification->title, $notification->longDescription);
21  }
22 }
23