mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
use text/plain for text email instead of text/text
This commit is contained in:
parent
30593f9c78
commit
3ac159d073
@ -255,7 +255,7 @@ def send_email(
|
|||||||
smtp = SMTP(POSTFIX_SERVER, POSTFIX_PORT or 25)
|
smtp = SMTP(POSTFIX_SERVER, POSTFIX_PORT or 25)
|
||||||
|
|
||||||
msg = MIMEMultipart("alternative")
|
msg = MIMEMultipart("alternative")
|
||||||
msg.attach(MIMEText(plaintext, "text"))
|
msg.attach(MIMEText(plaintext))
|
||||||
|
|
||||||
if not html:
|
if not html:
|
||||||
LOG.d("Use plaintext as html")
|
LOG.d("Use plaintext as html")
|
||||||
|
Loading…
Reference in New Issue
Block a user