Error 503 Rcpt First 5.5.1
Sign in Pricing Blog Support Search GitHub This repository Watch 199 Star 6,618 Fork 606 nodemailer/nodemailer Code Issues 9 Pull requests 0 Projects 0 Pulse Graphs New issue Repeated failure to send mail over Gmail SMTP #32 Closed foxbunny opened this Issue Jul 29, 2011 · 6 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants foxbunny commented Jul 29, 2011 I'm using a Google Apps account to send email (well, to try sending anyway). Here's the code I use to send the email. I use this configuration: user: 'address@domain.com', pass: 'password', ssl: true, host: 'smtp.gmail.com', use_authentication: true, port: 465 I've also set the sender to 'Our Team address@domain.com' (i.e., not just email). Rest of the code is a bit longish, so I won't quote here. In essence, I load a template from file, and interpolate data into it. That's why I have a wrapper module that takes care of this[1]. I've got some recursive function that calls the wrapper method until it can successfully send the email (or when it has tried 4 times with increasing time intervals between the tries). All tries fail. Every time, there is no error message, but sent is always false. How can I troubleshoot this issue? Is it an issue at all? [1] https://gist.github.com/1113923 nodemailer member andris9 commented Jul 29, 2011 Hi, could you set debug:true and report the output log back to here? This should show a bit better where the sending fails. { host:"smtp.gmail.com", user: .... debug: true } foxbunny commented Jul 29, 2011 Ha, yes, thanks for that. Here's the response: RECEIVE (1): └──"502 5.5.1 Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 Unrecognized command. p24sm599286bkw.41\r\n" "" foxbunny commented Jul 29, 2011 Here's the full thing. I've stripped away parts that I consider sensitive. Please tell me if you need something I've omitted. CONNECTION (1): 220 mx.google.com ESMTP p24sm599286bkw.41 Connection established! (1) SEND
SecurityCloud StoragePersonal SecurityTechEmailGadgetsMobileNewsSEODomain NamesGoogleTroubleshootingWearable TechnologyWeb BrowserWeb DevelopmentCMSeCommerceWeb HostingReader Q'sIs Shoeboxed or Expensify Better?Internet Slow After El Capitan 10.11.3 Update – Eset Cyber Security?Interspire Email Marketer Review?Satellite TV for RV's?What are the Top Shopify Competitors?More…Or Ask Your Own!About UsMeet Our TeamPressContact Us Home > Tech > Troubleshooting > How to Fix "503 valid RCPT command must precede DATA" Error How to Fix "503 valid RCPT command must precede DATA" Error Posted by: Alex Schenker Updated: December 15, 2015 in Troubleshooting 73 Comments Twitter Facebook Google+ Pinterest Print E-mailFor those that are tearing their hair out when getting the "503 valid RCPT command must precede DATA" error https://github.com/nodemailer/nodemailer/issues/32 (we'll refer to it as simply the 503 error going forwards) when trying to send email, here are some common solutions that will hopefully get you back up and running. If these don't work, or you need more detail on any of these steps, please read the rest of this article, and its comments, for some more in-depth solutions.Apostrophes - remove http://www.werockyourweb.com/503-valid-rcpt-command-must-precede-data/ any apostrophes (single quotes) or other non-alphabetic characters from your email account name(s).VPN - if your system is trying to connect via a VPN network while you're sending email, you may get this error. Try disconnecting the VPN before sending/ receiving mail.Full mailbox - make sure the mailbox of the affected account is not full or has met/ exceeded its quota. You can uncheck the following option to make sure a copy of all your emails is not being left on the server (note that since the email will be downloaded to your PC after this setting change, you won't be able to access your emails from another location if you do this). In Outlook, browse to Tools > Account Setting > More settings > Advanced > uncheck "leave a copy of this message on the server."SMTP port - use port 26 (instead of the default 25) for outgoing mail.Server authentication - setup your outgoing mail to use outgoing server authentication (sends mail by logging in with your email address and password). In Outlook, browse to Tools > Account Settings > More se
Frames Image Optimizer FavIcon Generator FavIcon Editor new Animated Gif Email Riddler .htaccess http://www.dynamicdrive.com/forums/showthread.php?53458-Warning-mail()-function-mail-SMTP-server-response-503-RCPT-first-(-5-5-1) Password .htaccess Banning Gradient Image Button Maker Ribbon Rules List http://board.phpbuilder.com/showthread.php?10337158-RESOLVED-Warning-mail()-SMTP-server-response-503-RCPT-first-(-5-5-1)-in Scrubber Tool DD Whois Service Register Help Remember Me? Advanced Search DD Home Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? Blogs Forum General Coding PHP Warning: mail() [function.mail]: SMTP error 503 server response: 503 RCPT first (#5.5.1) If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit error 503 rcpt from the selection below. Results 1 to 2 of 2 Thread: Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search 03-24-2010,11:11 AM #1 j_admin View Profile View Forum Posts View Blog Entries New Comer (less than 5 posts) Join Date Mar 2010 Posts 2 Thanks 0 Thanked 0 Times in 0 Posts Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) Hi, I have mail function but when I send it it appears to me as warning message like this Warning: mail() [function.mail]: SMTP server response: 503 RCPT first (#5.5.1) in D:\Hosting\3181178\html\goldy\Bay\includes\functions.php on line 51 My php coding is like this PHP Code: $subject="Noticeaboutreservationcancel";
$body="\n";
$body.="
RCPT first (#5.5.1) in If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 4 of 4 Thread: [RESOLVED] Warning: mail(): SMTP server response: 503 RCPT first (#5.5.1) in Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-07-2007,03:55 AM #1 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 [RESOLVED] Warning: mail(): SMTP server response: 503 RCPT first (#5.5.1) in Hello All getting following error how to solve this Warning: mail(): SMTP server response: 503 RCPT first (#5.5.1) in Thanks in advance Reply With Quote 03-07-2007,06:44 AM #2 Weedpacket View Profile View Forum Posts Pedantic Curmudgeon Join Date Aug 2002 Location General Contact Unit "Coping Mechanism" Posts 22,322 According to the SMTP specification a 503 error means a "bad sequence of commands", for example If a RCPT command appears without a previous MAIL command, the server MUST return a 503 "Bad sequence of commands" response. THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER FAQs! FAQs! FAQs! Most forums have them! Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all Reply With Quote 03-07-2007,09:45 AM #3 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 Thank you admin Reply With Quote 03-07-2007,09:46 AM #4 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 Thank you Weedpacket Reply With Quote Quick Navigation Coding Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums PHP Help General Help Newbies Database Install Coding Code Critique Upgrading PHP Discussion Echo Lounge Mods' Bods Feedback Available positions Tools Zend Studio Dreamweaver Misc Tools Misc Help ClientSide Technologies Windows Help Linux/Unix Help PHPBuilder Forum Archives « Previous Thread | Next Thread » Thread Information Users Browsing this Thread There are currently 1 users browsing this thread. (0 members and 1 guests) Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off [VIDEO] code is Off HTML code