From b0baac5c37d54b684dbee078df6c87173669f458 Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 28 Apr 2008 16:43:35 +0000 Subject: Marcus Povey * Notify and email notify added (not tested) ... still unsure about get_notify_list, attempted a number of options ... not sure if this is as simple as it could be git-svn-id: https://code.elgg.org/elgg/trunk@547 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 115 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 engine/lib/notification.php diff --git a/engine/lib/notification.php b/engine/lib/notification.php new file mode 100644 index 000000000..0b49e9108 --- /dev/null +++ b/engine/lib/notification.php @@ -0,0 +1,115 @@ +email=="")) + throw new NotificationException("Could not get the email address for GUID:$to_guid"); + + + $to = $entity->email; + $subject = $params['subject']; + $from = $params['from']; + + $headers = "From: $from\r\n"; + + return mail($to, $subject, $message, $headers); + } +?> \ No newline at end of file -- cgit v1.2.3