Permalink
Browse files

Fixing read from SMTP by EmailComponent. Closes #772

  • Loading branch information...
1 parent 7ed67e5 commit 74dad04323e289c2259e77d6d6e4bb696fba32b4 @jrbasso jrbasso committed May 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 74dad04

Please sign in to comment.