Red Squirrel Stumblog RSS

Dave Hoover stumbles through technology

Jun
17th
Tue
permalink

“Net::SMTPFatalError” with “553 5.0.0” and “User address required”

If you ever get this combination of errors while sending email, you should check the raw data for your “To:” field. I stupidly checked only the email address, rather than the raw data, which included the name, which, for some odd reason had backslashes for the last name. In other words, SMTP doesn’t like to send email to “John \\” <john@example.com>, in fact it hates sending email to these sorts of people and will do its best to ruin your afternoon if you attempt it.