555 5.5.2 Syntax error. gmail’s smtp

This question was asked here: Cakephp SMTP emails syntax error

Here is RabidFire’s (correct) answer:

Google’s SMTP requires you to format
email addresses in the following way:

Recipient Name <[email protected]>

Do this for both the from and to
address, and you should be good to go.
If you don’t have the name of the
user, then you can just repeat the
email:

$this->Email->to =
"[email protected]
<[email protected]>";

Leave a Comment