diff options
author | David Baker <dave@matrix.org> | 2016-06-03 16:38:39 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-06-03 16:38:39 +0100 |
commit | fbf608decbf85051379dc24446b1b6e89ff97e8c (patch) | |
tree | babd5513e3f7536e1b361a00200dff97334cbf55 /synapse | |
parent | Add substitutions to email notif From (diff) | |
download | synapse-fbf608decbf85051379dc24446b1b6e89ff97e8c.tar.xz |
Oops, we're using the dict form
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/push/mailer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py index 933a53fc3e..011bc4d2b1 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py @@ -186,7 +186,9 @@ class Mailer(object): multipart_msg = MIMEMultipart('alternative') multipart_msg['Subject'] = "[%s] %s" % (self.app_name, summary_text) - multipart_msg['From'] = self.hs.config.email_notif_from % (self.app_name, ) + multipart_msg['From'] = self.hs.config.email_notif_from % { + "app": self.app_name + } multipart_msg['To'] = email_address multipart_msg['Date'] = email.utils.formatdate() multipart_msg['Message-ID'] = email.utils.make_msgid() |