X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=blobdiff_plain;f=tools%2Fnotify.py;h=0c8f96909f283c5ee409a0ff5583ee474de19447;hp=50eb375e2dd3b4268c8df43751334e5f594714ac;hb=e42f0a675873dd8f315b166095d7d08dd712488e;hpb=0bb81ee5973a3fb3096c5e8ccbb3dd49dae0934c diff --git a/tools/notify.py b/tools/notify.py index 50eb375..0c8f969 100644 --- a/tools/notify.py +++ b/tools/notify.py @@ -18,7 +18,7 @@ def notify(recipients, template, context = {}): else: # Assume it is an email address to[r] = None - print to + for (address, name) in to.items(): if name is None: name = (None, None) @@ -49,7 +49,7 @@ def notify(recipients, template, context = {}): # Don't put From and Subject in the dict, else they'll be # present twice. headers_dict[field] = value - print address, name + msg = EmailMessage( # Only setting the From address through headers won't set the # envelope address right.