Add log for sl_sendmail
This commit is contained in:
parent
bdec7ff5e4
commit
159843a923
|
@ -1168,6 +1168,14 @@ def sl_sendmail(
|
||||||
|
|
||||||
# smtp.send_message has UnicodeEncodeError
|
# smtp.send_message has UnicodeEncodeError
|
||||||
# encode message raw directly instead
|
# 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(
|
smtp.sendmail(
|
||||||
from_addr,
|
from_addr,
|
||||||
to_addr,
|
to_addr,
|
||||||
|
|
Loading…
Reference in New Issue