add more logging
This commit is contained in:
parent
a9297078d3
commit
3f8e5d0a8b
|
@ -218,6 +218,7 @@ def send_email(
|
||||||
msg.attach(MIMEText(plaintext, "text"))
|
msg.attach(MIMEText(plaintext, "text"))
|
||||||
|
|
||||||
if not html:
|
if not html:
|
||||||
|
LOG.d("Use plaintext as html")
|
||||||
html = plaintext.replace("\n", "<br>")
|
html = plaintext.replace("\n", "<br>")
|
||||||
msg.attach(MIMEText(html, "html"))
|
msg.attach(MIMEText(html, "html"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue