NotifySmtpCheck.php
[Pman.Core] / NotifySend.php
index 953460a..f924a36 100644 (file)
@@ -210,6 +210,11 @@ class Pman_Core_NotifySend extends Pman
                      "Notification event cleared (not required any more)" 
                     ."\n");
         }
+        if (is_a($email, 'PEAR_Error')) {
+            $email =array(
+                'error' => $email->toString()
+            );
+        }
         
         if (empty($p) && !empty($email['recipients'])) {
             // make a fake person..
@@ -217,9 +222,7 @@ class Pman_Core_NotifySend extends Pman
                 'email' => $email['recipients']
             );
         }
-        print_R($email);exit;
-        
-        
+         
         if ($email === false || isset($email['error']) || empty($p)) {
             // object returned 'false' - it does not know how to send it..
             $ev = $this->addEvent('NOTIFY', $w, isset($email['error'])  ?