fix variables on update
[Pman.Core] / NotifySend.php
index f8076b8..b07a81c 100644 (file)
@@ -428,12 +428,15 @@ class Pman_Core_NotifySend extends Pman
                     
                     
                     $mailer->host = $server;
-                    $mailer->auth = true;
-                    $mailer->username = $settings['username'];;
-                    $mailer->password = $settings['password'];        
+                    $mailer->auth = isset($settings['auth']) ? $settings['auth'] : true;
+                    $mailer->username = $settings['username'];
+                    $mailer->password = $settings['password'];
+                    if (isset($settings['port'])) {
+                        $mailer->port = $settings['port'];
+                    }
                     if (isset($settings['socket_options'])) {
                         $mailer->socket_options = $settings['socket_options'];
-                        $mailer->port = $settings['port'];
+                        
                     }
                     
                     
@@ -644,6 +647,7 @@ class Pman_Core_NotifySend extends Pman
     {
         $this->debug_str .= strlen($this->debug_str) ? "\n" : '';
         $this->debug_str .= $message;
+        //echo $message ."\n";
     }
     
     function errorHandler($msg, $success = false)