summary refs log tree commit diff
path: root/synapse/push/mailer.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-22 18:42:00 +0100
committerDavid Baker <dave@matrix.org>2016-04-22 18:42:00 +0100
commitbd0f9c2065a0f766786493649893489b8e0e3d38 (patch)
treef1fa947bc424a4a670e240ae0197574e001051b5 /synapse/push/mailer.py
parentSort member events (diff)
downloadsynapse-bd0f9c2065a0f766786493649893489b8e0e3d38.tar.xz
Actually do UTF8 correctly
Diffstat (limited to '')
-rw-r--r--synapse/push/mailer.py2
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