context['addresses'] = addresses
rendered = loader.render_to_string(template, context)
- (headers, body) = rendered.split('\n\n', 2)
+ (headers, body) = rendered.split('\n\n', 1)
# Turn the headers into a dict so EmailMessage can turn them into a
# string again. Bit pointless, but it works.
headers = headers_dict
)
msg.send()
+# vim: set sts=4 sw=4 expandtab: