Set email charset as utf-8 rather than utf8 (#16329)
This commit is contained in:
parent
fedaebc440
commit
6946209e67
|
@ -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