From 159843a9234fa5d5680c59aff5d88c2a9f8d409f Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 24 May 2021 12:04:22 +0200 Subject: [PATCH] Add log for sl_sendmail --- app/email_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/email_utils.py b/app/email_utils.py index 93738a4d..f10f107d 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -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,