use text/plain for text email instead of text/text

This commit is contained in:
Son NK 2021-01-04 15:11:12 +01:00
parent 30593f9c78
commit 3ac159d073
1 changed files with 1 additions and 1 deletions

View File

@ -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")