HTML emails
Allow provision of a HTML email template to postman. The django core mailer already supports this.
I believe it would only a minor additions to the utilities. I'd be more than happy to work on this if it would be welcome.
Comments (7)
-
-
repo owner - changed status to open
-
repo owner -
assigned issue to
-
assigned issue to
-
repo owner You may have a look at PR 11, related to this topic, but I don't think an additional setting is necessary.
The forecasted design is: if there is a
email_user.html
template (same with email_visitor), the sending will have a text/html part, with a text/plain part from aemail_user.txt
template if existing, otherwise from strip_tags() of the html version. Without the html template, the behaviour is like before.This will be made compatible with django-mailer, and Django < 1.7.
-
repo owner Implementation committed. Look at the Notification page in the doc. Please evaluate it, you only need to replace utils.py, to confirm it is what you expected.
-
Tested on latest Django 1.10.2, Looks perfect to me. Thanks a lot!
-
repo owner - changed status to resolved
Available in release 3.4.0.
- Log in to comment
I need it too.
I guess the tricky part is to drop support of Django 1.6 and that the signature of
django-mailer.send_mail
is different:django.core.mail.send_mail
django-mailer.send_mail
:I'm ready to do a pull request, but I don't know what would be the right approch.