Fix #6436 - email test support via notify code
[Pman.Core] / DataObjects / Core_notify.php
index dbf012b..6cc632a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  *
 <?php
 /**
  *
- * Table is designed to be used with a mailer to notify or issue
+ * Table iend designed to be used with a mailer to notify or issue
  * emails (or maybe others later??)
  *
  *
  * emails (or maybe others later??)
  *
  *
@@ -316,13 +316,18 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         
     }
     
         
     }
     
-    function sendManual()
+    function sendManual($debug=false)
     {   
         require_once 'Pman/Core/NotifySend.php';
         
         $send = new Pman_Core_NotifySend();
         $send->error_handler = 'exception';
         
     {   
         require_once 'Pman/Core/NotifySend.php';
         
         $send = new Pman_Core_NotifySend();
         $send->error_handler = 'exception';
         
+        if ($debug) {
+            $send->get($this->id, array());
+            return true;
+        }
+        
         try {
             $send->get($this->id, array());
         } catch (Exception $e) {
         try {
             $send->get($this->id, array());
         } catch (Exception $e) {