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

Ervin Hegedüs airween at gmail.com
Wed Dec 17 11:59:02 EST 2014


Hi,

On Wed, Dec 17, 2014 at 08:16:23AM -0800, radzhome at gmail.com wrote:
> 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 !

I think that this exception came from your SMTP server, not from
smtplib. Check your smtpd log.

You can try to send through that smtpd at another way (eg.
netcat) with that address - may be then you can check the result.


a.

-- 
I � UTF-8



More information about the Python-list mailing list