context['addresses'] = addresses
rendered = loader.render_to_string(template, context)
context['addresses'] = addresses
rendered = loader.render_to_string(template, context)
# Turn the headers into a dict so EmailMessage can turn them into a
# string again. Bit pointless, but it works.
# Turn the headers into a dict so EmailMessage can turn them into a
# string again. Bit pointless, but it works.