diff options
author | David Baker <dave@matrix.org> | 2016-04-22 18:42:00 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-22 18:42:00 +0100 |
commit | bd0f9c2065a0f766786493649893489b8e0e3d38 (patch) | |
tree | f1fa947bc424a4a670e240ae0197574e001051b5 /synapse/push/mailer.py | |
parent | Sort member events (diff) | |
download | synapse-bd0f9c2065a0f766786493649893489b8e0e3d38.tar.xz |
Actually do UTF8 correctly
Diffstat (limited to '')
-rw-r--r-- | synapse/push/mailer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py index f679718b02..9212d36b84 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py @@ -77,7 +77,7 @@ class Mailer(object): plainText = self.notif_template.render(**template_vars) - text_part = MIMEText(plainText.encode('utf8'), "html") + text_part = MIMEText(plainText, "html", "utf8") text_part['Subject'] = "New Matrix Notifications" text_part['From'] = self.hs.config.email_notif_from text_part['To'] = email_address |