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 {
function send($recipients, $headers, $body)
{
/* If we don't already have an SMTP object, create one. */
$result = &$this->getSMTPObject();
//if (PEAR::isError($result)) {
if ($result === false) {
return $result;
$this->getSMTPObject();
if ($this->_smtp === false) {
return $this->_smtp;
}
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