feature request: include optional html_message in send_mass_mail tuple
62 views
Skip to first unread message
Michael Scheper
unread,
Mar 3, 2017, 7:26:48 PM3/3/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers (Contributions to Django itself)
It seems I'm not the only one who wants to include HTML in messages sent via send_mass_mail(). It also seems an easy feature to add; if the tuple has a fifth element, assume it's an html_message.
Actually, I feel like I'm reinventing the wheel by passing it though django.template.loader.render_to_string(), too. I've copied the same six-line function to numerous projects already.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers (Contributions to Django itself)
Hi Michael, it looks like we're not enhancing send_mass_mail() as per the docstring [0]: "The API for this method is frozen. New code wanting to extend the functionality should use the EmailMessage class directly." Perhaps the documentation could be clarified.