发送邮件错误捕获处理
This commit is contained in:
parent
4e11f623b0
commit
4210e4843b
|
@ -95,7 +95,7 @@ public class EmailService {
|
|||
flag = true;
|
||||
unSentEmailSendRecord.setSentAt(new Date());
|
||||
unSentEmailSendRecord.setStatus(flag ? NotificationSystemConstant.EMAIL_SENT_SUCCESS : NotificationSystemConstant.EMAIL_SENT_FAIL);
|
||||
} catch (MessagingException e) {
|
||||
} catch (Exception e) {
|
||||
logger.error("发送邮件失败,email: " + unSentEmailSendRecord.getEmail() + "\n" + e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue