mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
Add log for sl_sendmail
This commit is contained in:
parent
bdec7ff5e4
commit
159843a923
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue