django-templated-email
django-templated-email copied to clipboard
Please expose the connection argument of the EmailMultiAlternatives constructor
This will allow the reuse of a cached connection object for better resource utilization
I think this is already doable if you use the get_templated_email and handle connections/backends yourself.
I know this is a very old issue, but if anyone else sees a similar problem, please comment here. Closing for now.
What we can do to facilitate custom connections on send_templated_mail is:
- Change the current
connectionargument totemplate_backend - Change the current
get_connectionfunction insidetemplated_email/__init__.pytoget_default_template_backend - Add a new
connectionargument tosend_templated_mailand pass it totemplate_backend.send