Skip to content

Commit

Permalink
Fixing read from SMTP by EmailComponent. Closes #772
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed May 31, 2010
1 parent 7ed67e5 commit 74dad04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/components/email.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 74dad04

Please sign in to comment.