Skip to content

Commit

Permalink
Merge pull request PHPMailer#269 from AnrDaemon/patch-2
Browse files Browse the repository at this point in the history
SMTP::getLastReply() should be populated with last server reply…
  • Loading branch information
Synchro committed Aug 25, 2014
2 parents accb157 + d45a19f commit a7d3e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.smtp.php
Expand Up @@ -712,7 +712,7 @@ protected function sendCommand($command, $commandstring, $expect)
}

if (!in_array($code, (array)$expect)) {
$this->last_reply = null;
$this->last_reply = $reply;
$this->error = array(
'error' => "$command command failed",
'smtp_code' => $code,
Expand Down

0 comments on commit a7d3e83

Please sign in to comment.