News for hackers. Stuff that matters.
Re:Envelopes - Python email for humans by gpsarakis on Wednesday August 07, 2013 @04:57PM (#6175574)
Seems really nice with a first glance. Are you considering any Django support in the future?
Re:Envelopes - Python email for humans by mattoc on Wednesday August 07, 2013 @09:20PM (#6176822)
Django's Email API is already pretty solid, see the EmailMessage[0] class. Attachments and multiple MIME types are handled for sending text & html versions of the email body.

However, given that Django is just Python there's nothing precluding you from using the library as a drop-in replacement.

[0] https://docs.djangoproject.com/en/dev/topics/email/#emailmes...

Re:Envelopes - Python email for humans by tomekwojcik on Thursday August 08, 2013 @03:26AM (#6177715)
I don't generally do Django, but I don't think it should be a problem. Just a word of warning - if you're going to use a global per-app SMTP connection remember to wrap it in connstack. The Flask example shows this and it shouldn't be hard to do the same in Django.