Standard library high level support for email messages
Hello all, Python, as a "batteries included" language, strives to provide out of the box solution for most common programming tasks. Composing and sending email messages is a common task, supported by `email` and `smtplib` modules. However, a programmer not familiar with MIME won't be able to create non-trivial email messages. Actually, this proposal idea comes from the frustration of fast learning about MIME to get the job done, and later learn that some people´s email clients couldn't properly display the messages because I tripped in some details of multipart messages with Text+HTML and attachments. You can call me a bad programmer, but couldn't / shouldn't this be easier? Should a programmer be required to know about MIME in order to send a decently composed email with images or attachments? The hardest part is already built in. Why not go that one step further and add to the email standard library an wrapper to handle common email composition without exposing the MIME details. Something similar to http://code.activestate.com/recipes/576858-send-html-or-text-email-with-or-w..., or perhaps including as lib such as pyzlib. Regards Daniel Reis
participants (3)
-
Barry Warsaw
-
Daniel Reis
-
Oleg Broytman