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
connection
argument totemplate_backend
- Change the current
get_connection
function insidetemplated_email/__init__.py
toget_default_template_backend
- Add a new
connection
argument tosend_templated_mail
and pass it totemplate_backend.send