Mail From Syntax Error
Contents |
swear :p ), be aware that some new email servers strictly interpret RFC 2821 and appears to reject MAIL FROM and RCPT TO addresses of the form foo@example.com. Instead, it will return 555 5.5.2 syntax error gmail a 555 5.5.2 Syntax error. The proper solution is to enclose the address brackets, mail from syntax error gmail as in
HELO example.com
250 Hello
MAIL FROM: foo@example.com
555 5.5.2 Syntax
5.5.2 Syntax Error Outlook
error.
MAIL FROM:
250 2.1.0 OK
RCPT TO: bar@example.com
555 5.5.2 Syntax error.
RCPT TO:
250 2.1.5 OK
DATA ....
I'm sure this is
Smtp Commands Telnet
intended so that clients that send "Joe Schmoe
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and
Smtp Mail From Syntax Display Name
policies of this site About Us Learn more about Stack Overflow the gsmtp company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags rfc 5322 compliant gmail Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only https://blog.yimingliu.com/2008/11/26/email-servers-and-mail-from-syntax/ takes a minute: Sign up 555 5.5.2 Syntax error. gmail's smtp up vote 8 down vote favorite Do you know what is syntax error refering? Here's the code I'm using cakephp $User = $this->User->read(null,$id); $this->Email->to = array('name@gmail.com');; $this->Email->from = 'name@gmail.com'; $this->Email->subject = 'Welcome to our really cool thing'; $this->Email->template = 'simple_message'; $this->Email->sendAs = 'both'; $this->Email->smtpOptions = array( 'port'=>'465', 'timeout'=>'30', 'auth' => http://stackoverflow.com/questions/4321346/555-5-5-2-syntax-error-gmails-smtp true, 'host' => 'ssl://smtp.gmail.com', 'username'=>'name@gmail.com', 'password'=>'********', ); $this->set('User', $User); $this->Email->delivery = 'smtp'; $this->Email->send(); NOTE I'm sending the email to myself for test porpuses email smtp share|improve this question edited Dec 1 '10 at 5:11 asked Dec 1 '10 at 5:01 juan 71129 Perhaps a few more details are in order. Like, the email causing this error, how you're sending it, where you're sending it from, etc... Until then, this question is "it's broken. fix it. you don't need any more details" –Marc B Dec 1 '10 at 5:04 Of course sorry I fixed already –juan Dec 1 '10 at 5:12 if it's fixed, post an answer for us? Was it an ssl cert issue? –zanlok Dec 9 '10 at 21:18 possible duplicate of Cakephp SMTP emails syntax error –Yasir Arsanukaev Aug 23 '11 at 10:50 add a comment| 4 Answers 4 active oldest votes up vote 15 down vote 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
and earlier Please enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked Heinz Wittenbecher Level 2 (195 https://discussions.apple.com/thread/131380?start=0&tstart=0 points) Q: Squirrel Mail: Syntax Error in parameters or arguments I get this error when I try to reply to an email.Server replied: 501 Bad address syntaxThis is on my primary domain. On a virtual domain address i got a reply to go.Same error even when I re-type the address.Just as I was typing this message I tried a syntax error fresh message, I.e. from scratch.Same error, I.e. unable to send any emails via webmail with primary domain.TIA for any suggestions to chase it down/fix. Posted on Sep 13, 2005 6:08 AM I have this question too Close Q: Squirrel Mail: Syntax Error in parameters or arguments All replies Helpful answers by pterobyte, pterobyte Sep 13, 2005 1:04 AM in response mail from syntax to Heinz Wittenbecher Level 6 (11,101 points) Servers Enterprise Sep 13, 2005 1:04 AM in response to Heinz Wittenbecher Did it ever work, or is it the first time you're trying webmail?So virtual domains work, but local domains don't? Correct?You probably only use the right part of the address for local domains.If you haven't configured SquirrelMail, then it is sending as the hostname it picked up from reverse DNS.So instead of heinz@yourdomain.com it could be using heinz@machinename.yourdomain.com.Try addressing with full address and see if it works.Also check if you set the sender adress right.SquirrelMail can be configured here:/usr/share/squirrelmail/config/conf.plThis is just one possible scenario. What does your mailaccess.log and mail.log say?Alex Helpful (0) Reply options Link to this post by Heinz Wittenbecher, Heinz Wittenbecher Sep 13, 2005 5:52 AM in response to Heinz Wittenbecher Level 2 (195 points) Sep 13, 2005 5:52 AM in response to Heinz Wittenbecher THANK YOU!I set the domain with conf.pl and that cured it.In checking the virtual domain I found that a 550 error was generated until I added and entry in virtual like:shortname@track