From 3ac159d0735651db2bfdbc699e29f7516162443a Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 4 Jan 2021 15:11:12 +0100 Subject: [PATCH] use text/plain for text email instead of text/text --- app/email_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/email_utils.py b/app/email_utils.py index 79db3eea..a9a872fc 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -255,7 +255,7 @@ def send_email( smtp = SMTP(POSTFIX_SERVER, POSTFIX_PORT or 25) msg = MIMEMultipart("alternative") - msg.attach(MIMEText(plaintext, "text")) + msg.attach(MIMEText(plaintext)) if not html: LOG.d("Use plaintext as html")