[Twisted-Python] email addresses with display names in Twisted Mail?

Kevin Mateo Lim k7lim at cs.stanford.edu
Thu Jul 3 14:45:33 EDT 2008

Hello all,

I'd like the emails that I send with my webapp to include the display name.
as per http://www.ietf.org/rfc/rfc2821.txt: User Name <local-part at domain>

When I try to include this style of address in my sendmail method, I
get this error:
<class 'twisted.mail.smtp.AddressError'>: Parse error at ' ' of
("'MyDomain Mailer' <no-reply at mydomain.com>", [' ', "Mailer'", ' ',
'<', 'no-reply', '@', 'mydomain', '.', 'com', '>'])

Any suggestions?  Because I'm stuck on this.


More information about the Twisted-Python mailing list