Hi guys, im having problems using the Email component with SMTP...
app_controller:
$this->Email->smtpOptions = array(
'port'=>'465',
'timeout'=>'30',
'host' => 'ssl://<host>',
'username'=>'<username>',
'password'=>'123456'
);
/* Set delivery method */
$this->Email->delivery = 'smtp';
Then in my users controller i have this:
$this->Email->from = 'Test <hostname>';
$this->Email->to =
'<'.$row['User']['email'].'>';
$this->Email->subject = 'Test';
//$this->Email->sendAs = 'both'; // because we
like to send pretty
mail
$this->Email->template = 'forgot_password';
$this->set('user', $row);
$this->Email->send();
When i run this action, i get the following:
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) ...
I've also tried setting the 'client' key in the smptOptions array to
the same host, but im still getting:
550-"REJECTED - Bad HELO - Host impersonating
Is anyone having this issues with this core component using SMTP and
SSL options?
Any help is appreciated! :)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en