mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
add more logging
This commit is contained in:
parent
a9297078d3
commit
3f8e5d0a8b
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ def send_email(
|
|||
msg.attach(MIMEText(plaintext, "text"))
|
||||
|
||||
if not html:
|
||||
LOG.d("Use plaintext as html")
|
||||
html = plaintext.replace("\n", "<br>")
|
||||
msg.attach(MIMEText(html, "html"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue