from django.contrib.auth.models import User,Group
from django.core.mail import EmailMessage
from django.template import loader
-from ee.tools.misc import make_iter
+from xerxes.tools.misc import make_iter
"""
Notify someone about something.
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: