Mailer.php
authorAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 06:37:40 +0000 (14:37 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 06:37:40 +0000 (14:37 +0800)
Mailer.php

index 08b1421..6ba5896 100644 (file)
@@ -282,6 +282,12 @@ class Pman_Core_Mailer {
         ///$recipents = array($this->email);
         $mailOptions = PEAR::getStaticProperty('Mail','options');
         //print_R($mailOptions);exit;
+        
+        if ($this->mail_method == 'SMTPMX' && empty($mailOptions['mailname'])) {
+            $pg->jerr("Mail[mailname] is not set - this is required for SMTPMX");
+            
+        }
+        
         $mail = Mail::factory($this->mail_method,$mailOptions);
         if ($this->debug) {
             $mail->debug = $this->debug;