NotifySend.php
[Pman.Core] / NotifySend.php
index f1931d3..6bd8995 100644 (file)
@@ -231,10 +231,9 @@ class Pman_Core_NotifySend extends Pman
         
         if (isset($email['later'])) {
             $old = clone($w);
-            
             $w->act_when = $email['later'];
             $w->update($old);
-            $this->errorHandler(date('Y-m-d h:i:s ') . " Delivery postponed by email creator");
+            $this->errorHandler(date('Y-m-d h:i:s ') . " Delivery postponed by email creator to {$email['later']}");
         }
         
          
@@ -401,9 +400,11 @@ class Pman_Core_NotifySend extends Pman
                       //  'debug' => true
                     ));
                     $email['headers']['Subject'] = "(CC): " . $email['headers']['Subject'];
-                    $cmailer->send($email['bcc'],
+                    $res = $cmailer->send($email['bcc'],
                                   $email['headers'], $email['body']);
-                    
+                    if (!$res || is_a($res, 'PEAR_Error')) {
+                        echo "could not send bcc..\n";
+                    }
                 }