NotifySend.php
authorAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 06:58:03 +0000 (14:58 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 06:58:03 +0000 (14:58 +0800)
NotifySend.php

index 088d298..38b8f7e 100644 (file)
@@ -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....