diff --git a/memsto/notify_channel_cache.go b/memsto/notify_channel_cache.go index bf9eb0db..c2c09b19 100644 --- a/memsto/notify_channel_cache.go +++ b/memsto/notify_channel_cache.go @@ -502,7 +502,11 @@ func (ncc *NotifyChannelCacheType) startEmailSender(chID int64, smtp *models.SMT m.Mail.GetHeader("Subject"), m.Mail.GetHeader("To")) } - // sender.NotifyRecord(ncc.ctx, m.Events, m.NotifyRuleId, models.Email, strings.Join(m.Mail.GetHeader("To"), ","), "", err) + // 记录通知详情 + if ncc.notifyRecordFunc != nil { + target := strings.Join(m.Mail.GetHeader("To"), ",") + ncc.notifyRecordFunc(ncc.ctx, m.Events, m.NotifyRuleId, "Email", target, "success", err) + } size++ if size >= conf.Batch {