Report/SendEventErrors.php
[Pman.Admin] / Report / SendEventErrors.php
index 1c336ee..ec67e17 100644 (file)
@@ -58,7 +58,7 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo
     function get($args, $opts)
     {
         $this->opts = $opts;
-        
+        print_R($this->opts);exit;
         if(empty($this->opts['group'])){
             $this->jerr('Missing group - try add [-t {group name}]');
         }
@@ -139,6 +139,14 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo
         
         $errors = $events->fetchAll();
         
+        if(!empty($this->opts['helo'])){
+            HTML_FlexyFramework::get()->Mail['helo'] = $this->opts['helo'];
+        }
+        
+        if(!empty($this->opts['host'])){
+            HTML_FlexyFramework::get()->Mail['host'] = $this->opts['host'];
+        }
+        
         $content = array(
             'template'      => 'EVENT_ERRORS_REPORT',
             'rcpts'         => $rcpts,