Add log for sl_sendmail

This commit is contained in:
Son NK 2021-05-24 12:04:22 +02:00
parent bdec7ff5e4
commit 159843a923
1 changed files with 8 additions and 0 deletions

View File

@ -1168,6 +1168,14 @@ def sl_sendmail(
# smtp.send_message has UnicodeEncodeError
# encode message raw directly instead
LOG.d(
"Sendmail mail_from:%s, rcpt_to:%s, header_from:%s, header_to:%s, header_cc:%s",
from_addr,
to_addr,
msg["From"],
msg["To"],
msg["Cc"],
)
smtp.sendmail(
from_addr,
to_addr,