Skip to content

Commit

Permalink
Improve connection error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 17, 2015
1 parent 166ce3b commit 3c29d75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions class.phpmailer.php
Expand Up @@ -1365,6 +1365,7 @@ public function smtpConnect($options = array())
return true;
} catch (phpmailerException $exc) {
$lastexception = $exc;
$this->edebug($exc->getMessage());
// We must have connected, but then failed TLS or Auth, so close connection nicely
$this->smtp->quit();
}
Expand Down

0 comments on commit 3c29d75

Please sign in to comment.