mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Set email charset as utf-8 rather than utf8 (#16329)
This commit is contained in:
parent
fedaebc440
commit
6946209e67
1
changelog.d/16329.bugfix
Normal file
1
changelog.d/16329.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Use standard name for UTF-8 charset in emails.
|
@ -174,8 +174,8 @@ class SendEmailHandler:
|
||||
if raw_to == "":
|
||||
raise RuntimeError("Invalid 'to' address")
|
||||
|
||||
html_part = MIMEText(html, "html", "utf8")
|
||||
text_part = MIMEText(text, "plain", "utf8")
|
||||
html_part = MIMEText(html, "html", "utf-8")
|
||||
text_part = MIMEText(text, "plain", "utf-8")
|
||||
|
||||
multipart_msg = MIMEMultipart("alternative")
|
||||
multipart_msg["Subject"] = subject
|
||||
|
Loading…
Reference in New Issue
Block a user