Actually do UTF8 correctly

pull/759/head
David Baker 2016-04-22 18:42:00 +01:00
parent c5b3c6e101
commit bd0f9c2065
1 changed files with 1 additions and 1 deletions

View File

@ -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