Commit 5b25a474 authored by kaiyou's avatar kaiyou

Send text emails as plain mimetext

parent cd7da17d
Pipeline #266 passed with stage
in 1 minute and 17 seconds
......@@ -60,7 +60,7 @@ def send_mail(context, account, to, message):
mail["Subject"] = f"[{message}] {title}"
mail["From"] = account["username"]
mail["To"] = to
mail.attach(text.MIMEText(content, "text"))
mail.attach(text.MIMEText(content, "plain"))
smtp.sendmail(account["username"], to, mail.as_string())
smtp.quit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment