pear/Mail

setDebug does not expose handler

Closed this issue · 4 comments

Backward-compatible change in smtp.php, line 411:

if (is_callable($this->debug)) {
$this->_smtp->setDebug(true, $this->debug);
} else {
$this->_smtp->setDebug(true);
}

Hi @editorassistant,

thanks for your message.
$this->debug is only a boolean property.
As i understand, you want to set the debugging-handler in Net_SMTP?
Give me a little bit to think about your suggested code.
Maybe it would be better to add a property like $this->debug_handler?
I will think about that.

Fixed by #30