if (!isset($ff->Mail['helo'])) {
die("config Mail[helo] is not set");
}
- $debug_str = '';
+ $this->debug_str = '';
$this->debug("Trying SMTP: $dom / HELO {$ff->Mail['helo']}");
$mailer = Mail::factory('smtp', array(
'host' => $dom ,
{
die("done\n");
}
+ var $debug_str = '';
+
+ function debugHandler ($smtp, $message)
+ {
+ $this->debug_str .= strlen($this->debug_str) ? "\n" : '';
+ $this->debug_str .= $message;
+ }
}
\ No newline at end of file