From d5ddd8ee5f23109233387175f3c7dd6a0bd38631 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Wed, 9 Jun 2010 19:22:06 -0300 Subject: [PATCH] Fixing check of EHLO/HELO in EmailComponent. Fixes #794 --- cake/libs/controller/components/email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index dbd9ef233..4397a5f38 100755 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -813,7 +813,7 @@ class EmailComponent extends Object{ $host = 'localhost'; } - if (!$this->_smtpSend("EHLO {$host}", '250') || !$this->_smtpSend("HELO {$host}", '250')) { + if (!$this->_smtpSend("EHLO {$host}", '250') && !$this->_smtpSend("HELO {$host}", '250')) { return false; }