NotifySend.php
authorAlan Knowles <alan@roojs.com>
Thu, 30 Oct 2014 04:24:49 +0000 (12:24 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 30 Oct 2014 04:24:49 +0000 (12:24 +0800)
NotifySend.php

index 74a209f..132c78e 100644 (file)
@@ -335,9 +335,7 @@ class Pman_Core_NotifySend extends Pman
                     'timeout' => 15,
                     'socket_options' =>  isset($ff->Mail['socket_options']) ? $ff->Mail['socket_options'] : null,
                     'debug' => isset($opts['debug']) ?  1 : 0,
-                    'debug_handler' => function($net_smtp, $message) uses ($debug_str) {
-                        $debug_str += $message;
-                    }
+                    'debug_handler' => array($this, 'debugHandler')
                 ));
             $res = $mailer->send($p->email, $email['headers'], $email['body']);