I came across this issue #17193 which is quite old, that I'd like clarification/discussion on. To summarize the discussion that took place there <https://code.djangoproject.com/ticket/17193> as well as from an older discussion <https://groups.google.com/g/django-developers/c/RyjyDdgCPdk/m/zrBWquobWOUJ> : The ticket was raised in hopes of allowing the sending of mail from a template without having to use the roundabout of the 'render_to_string' method before the "html_message" attribute was added to send_mail and EmailMessage. After this attribute was added, the discussion was that the use cases for this template format were even more reduced and that implementing it through a third-party package would perhaps be more elegant.
Consider the following use case: You have a student lifecycle management system in which you need to send the same circular to all students and parents fitting certain criteria, with only a few changes such as name, class, etc. In this particular scenario, you would send a templated email to a lot of people, or, in other words, a mass templated email with only the context and recipient changing. While third party packages could accomplish this one way or another, it is my opinion that a more elegant solution could be provided by Django. Considering, that this sort of situation seems quite likely to arise, and the age of this ticket, I wonder if there has been any development in this area since, which I could not find in my own research on this issue. If so I would appreciate it if you could point me in the correct direction. If not, I would like to open discussion for potential solutions to this. If this is finally deemed unnecessary, it becomes a simple matter of closing the ticket. In relevance to this, even in the absence of support for TemplatedMails, it perhaps would be useful to allow sending mass emails while also allowing the usage of the EmailMessage format of more descriptive emails. This might be accomplished by allowing a list of EmailMessage objects in the helper function "send_mass_mail" or maybe by creating a new EmailMessages object to do this. Would appreciate your input on this. ---- Regards Muskan Vaswan -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/9e7d10ee-6492-4430-a963-7ceb632fe928n%40googlegroups.com.