设备监控状态异常邮箱修改成配置文件读取

This commit is contained in:
junleea 2025-09-03 20:44:43 +08:00
parent 6e5ee4f0e2
commit f0e025bec5
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ func SendMail(title, content string) {
em.SmtpPort = 587
em.ImapPort = 993
var targetMails []string
for _, v := proto.Config.MONITOR_MAIL{
for _, v := range proto.Config.MONITOR_MAIL {
targetMails = append(targetMails, v.Value)
}
if targetMails == nil || len(targetMails) == 0 {