Google Mail Smtp Syntax Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company 555 5.5.2 syntax error gmail Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs mail from syntax error gmail Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, 5.5.2 syntax error outlook just like you, helping each other. Join them; it only 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
503 5.5.1 Mail First
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' => 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 555 syntax error outlook 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 in the following way: Recipient Name
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta smtp error 555 Discuss the workings and policies of this site About Us Learn
502 5.5.1 Unrecognized Command.
more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super
Gsmtp
User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes http://stackoverflow.com/questions/4321346/555-5-5-2-syntax-error-gmails-smtp a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Telnet 555 5.5.2 Syntax error. b42si7464989qgd.93 - gsmtp up vote 3 down vote favorite I'm trying to do email spoofing in cmd in telnet but failed to do so. I entered http://superuser.com/questions/736262/telnet-555-5-5-2-syntax-error-b42si7464989qgd-93-gsmtp C:\Documents and Settings\Owner>telnet alt3.gmail-smtp-in.l.google.com 25 Then it brought me here 220 mx.google.com ESMTP p59si7495147qga.25 - gsmtp Typed this one ehlo Then it produced: 250-mx.google.com at your service, [122.54.217.133] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250 CHUNKING I continued typing this: MAIL FROM:
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, https://blog.yimingliu.com/2008/11/26/email-servers-and-mail-from-syntax/ it will return a 555 5.5.2 Syntax error. The proper solution is to http://exchangepedia.com/blog/2006/07/helo-rfc-2821-telnetting-to-gmails.html enclose the address brackets, as in
HELO example.com
250 Hello
MAIL FROM: foo@example.com
555 5.5.2 Syntax 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 syntax error ....
I'm sure this is intended so that clients that send "Joe Schmoe
IMF/Content Filter Mailbox Microsoft Mobility | BES/ActiveSync NetApp Newsbytes Outlook OWA Scripts Security SMTP | Transport Tools Windows Monthly Archives Click for blog Archives Top 10 Visitor Locations:APRIL 2010 1. London, UK 2. New York, NY 3. Sydney, Australia 4. Melbourne, Australia 5. Moscow, Russia 6. Singapore 7. Paris, France 8. Chicago, IL 9. Hong Kong 10. Houston, TX Exchangepedia Blog is read by visitors from all 50 US States and 150 countries world-wide Monday, July 24, 2006 HELO RFC 2821: Telnetting to Gmail's SMTP servers Posted by Bharat Suneja at 7:48 PM Telnetting to SMTP port of a mail server is a common troubleshooting task to test SMTP connectivity and mail flow that most of us do ever so frequently. After the initial HELO/EHLO command, you issue a MAIL FROM command that provides a return path to the receiving server - generally the SMTP address of the sender e.g. [emailprotected]With most servers, MAIL FROM:[emailprotected] works.Today I was testing some X-header functionality with Google's Gmail service, after having performed similar tests against Exchange Server 2007 (Beta 2), Exchange 2003, and Hotmail. However, when I issued the MAIL FROM command when testing with Gmail, it threw up a syntax error! I use this almost several times a day, and never have I seen a syntax error being thrown up on MAIL FROM or RCPT TO.Out of curiosity, I decided to lookup RFC 2821 to figure out if there was something I wasn't doing right or that Gmail was enforcing in its zeal to be strictly RFC-compliant. As it turns out, the RFC does require addresses to be enclosed in "<" and ">" brackets!Specifically:The first step in the procedure is the MAIL command.MAIL FROM: