Skip to content
Snippets Groups Projects
Commit 83bf6529 authored by David Baker's avatar David Baker
Browse files

Mime part is binary so encode it first.

Doesn't get character enocind right yet but makes it not error.
parent e8701e64
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class Mailer(object):
plainText = self.notif_template.render(**template_vars)
text_part = MIMEText(plainText, "html")
text_part = MIMEText(plainText.encode('utf8'), "html")
text_part['Subject'] = "New Matrix Notifications"
text_part['From'] = self.hs.config.email_notif_from
text_part['To'] = email_address
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment