On Sep 17, 2010, at 12:10 PM, Antoine Pitrou wrote:

>Also, I don't understand why an application would want to assemble an
>e-mail by itself if it doesn't know how to do so, and produces wrong
>data. Why not simply let the application do:
>
>m = Message()
>m.add_header("From", "Accented BĂ rry <ba...@python.org>")
>m.add_body("Hello Barry")

Very often you'll start with a template of a message your application wants to
send.  Then you'll interpolate a few values into it, and you'd like to easily
convert the result into an RFC valid email.

Is that template bytes or text (or either)?

-Barry

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to