mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 16:02:15 +01:00
Mime part is binary so encode it first.
Doesn't get character enocind right yet but makes it not error.
This commit is contained in:
parent
e8701e64b9
commit
83bf65297a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue