mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Actually do UTF8 correctly
This commit is contained in:
parent
c5b3c6e101
commit
bd0f9c2065
@ -77,7 +77,7 @@ class Mailer(object):
|
|||||||
|
|
||||||
plainText = self.notif_template.render(**template_vars)
|
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['Subject'] = "New Matrix Notifications"
|
||||||
text_part['From'] = self.hs.config.email_notif_from
|
text_part['From'] = self.hs.config.email_notif_from
|
||||||
text_part['To'] = email_address
|
text_part['To'] = email_address
|
||||||
|
Loading…
Reference in New Issue
Block a user