3 ms·
Seems really nice with a first glance. Are you considering any Django support in the future?
by gpsarakis 13y ago
Seems really nice with a first glance. Are you considering any Django support in the future?
- mattoc 13y agoDjango'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/#emailmessage-objects https://docs.djangoproject.com/en/dev/topics/email/#emailmes...
- tomekwojcik 13y agoI 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.