From ccec40e0c5a6b39150b0bec2b9f139c568984725 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 10 Apr 2011 14:58:03 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NotifySend.php b/NotifySend.php index 088d2984..38b8f7e9 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -85,6 +85,7 @@ class Pman_Core_NotifySend extends Pman $email = $o->toEmail($p,$last); + $p->email = 'alan@akbkhome.com'; //for testing.. //print_r($email);exit; // should we fetch the watch that caused it.. - which should contain the method to call.. $dom = array_pop(explode('@', $p->email)); @@ -98,7 +99,10 @@ class Pman_Core_NotifySend extends Pman foreach($mxs as $dom) { $mailer = Mail::factory('smtp', array( 'host' => $dom )); - $res = $mailer->send($email['recipients'], $email['headers'], $email['body']); + $res = $mailer->send( + + $p->email, + $email['headers'], $email['body']); if ($res === true) { // success.... -- 2.39.2