NotifySend.php
authorAlan Knowles <alan@akkbhome.com>
Wed, 6 Apr 2011 15:38:15 +0000 (23:38 +0800)
committerAlan Knowles <alan@akkbhome.com>
Wed, 6 Apr 2011 15:38:15 +0000 (23:38 +0800)
NotifySend.php

index 2caff22..52a733c 100644 (file)
@@ -79,11 +79,14 @@ class Pman_Core_NotifySend extends Pman
                 die("SENT");
             }
             // what type of error..
+            list($code, $response) = $mailer->_smtp->getResponse();
+            if ($code < 0) {
+                continue; // try next mx...
+            }
             
             switch($res->getCode()) {
-                case
-                    
-                    list($code, $response) = $mailer->_smtp->getResponse();
+                case PEAR_MAIL_SMTP_ERROR_CONNECT:
+                
                     
             }