Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing read from SMTP by EmailComponent. Closes #772

  • Loading branch information...
commit 74dad04323e289c2259e77d6d6e4bb696fba32b4 1 parent 7ed67e5
@jrbasso jrbasso authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cake/libs/controller/components/email.php
View
2  cake/libs/controller/components/email.php
@@ -885,7 +885,7 @@ function _smtpSend($data, $checkCode = '250') {
while (substr($response, -2) !== "\r\n" && ((time() - $startTime) < $this->smtpOptions['timeout'])) {
$response .= $this->__smtpConnection->read();
}
- if (substr($response, -2) === "\r\n") {
+ if (substr($response, -2) !== "\r\n") {
$this->smtpError = 'timeout';
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.