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

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@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@mydomain.com>", [' ', "Mailer'", ' ', '<', 'no-reply', '@', 'mydomain', '.', 'com', '>']) Any suggestions? Because I'm stuck on this. Thanks, Kevin

On Thu, 3 Jul 2008 14:45:33 -0400, Kevin Mateo Lim <k7lim@cs.stanford.edu> wrote:
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@domain>
This form is only supported for the VRFY command. If you want an MUA to display a real name along with an email address, then you need to include that information in one of the MIME headers of the message you're sending. SMTP isn't involved in that part of the process at all. Jean-Paul

Thanks Jean-Paul, I'll do that. On Thu, Jul 3, 2008 at 2:52 PM, Jean-Paul Calderone <exarkun@divmod.com> wrote:
On Thu, 3 Jul 2008 14:45:33 -0400, Kevin Mateo Lim <k7lim@cs.stanford.edu> wrote:
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@domain>
This form is only supported for the VRFY command. If you want an MUA to display a real name along with an email address, then you need to include that information in one of the MIME headers of the message you're sending. SMTP isn't involved in that part of the process at all.
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Jean-Paul Calderone
-
Kevin Mateo Lim