Commit 45ab1bbc authored by Bart Vullings's avatar Bart Vullings

ZP-1276 Error in logging when sending email with imap backend. Released under...

ZP-1276 Error in logging when sending email with imap backend. Released under the Affero GNU General Public License (AGPL) version 3.
parent 09493d72
...@@ -277,10 +277,9 @@ class Mail_smtp extends Mail { ...@@ -277,10 +277,9 @@ class Mail_smtp extends Mail {
function send($recipients, $headers, $body) function send($recipients, $headers, $body)
{ {
/* If we don't already have an SMTP object, create one. */ /* If we don't already have an SMTP object, create one. */
$result = &$this->getSMTPObject(); $this->getSMTPObject();
//if (PEAR::isError($result)) { if ($this->_smtp === false) {
if ($result === false) { return $this->_smtp;
return $result;
} }
if (!is_array($headers)) { if (!is_array($headers)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment