[Twisted-Python] email addresses with display names in Twisted Mail?
Kevin Mateo Lim
k7lim at cs.stanford.edu
Thu Jul 3 12:45:33 MDT 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.
Thanks,
Kevin
More information about the Twisted-Python
mailing list