smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email

radzhome at gmail.com radzhome at gmail.com
Wed Dec 17 11:16:23 EST 2014


smtplib.SMTPRecipientsRefused: {'aahlin!@gmail.com': (550, 'restricted characters in address')}

As in this question, the answer has reference to RFCs that spec it out, and state that exclamations are ok, so why is smptplib throwint this error?

http://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-email-address

Django uses smtplib to send emails so it in turn fails too but email validation allows you to enter !



More information about the Python-list mailing list