add smtp log

This commit is contained in:
Ulric Qin 2022-03-01 13:50:51 +08:00
parent caa37b087c
commit 9c662de129
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ func StartEmailSender() {
if err := gomail.Send(s, m); err != nil {
logger.Errorf("email_sender: failed to retry send: %s", err)
}
} else {
logger.Infof("email_sender: result=succ subject=%v to=%v", m.GetHeader("Subject"), m.GetHeader("To"))
}
size++