diff --git a/class.phpmailer.php b/class.phpmailer.php index b52482eca..c67817f8b 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -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(); }