设备监控状态异常邮箱修改成配置文件读取
This commit is contained in:
parent
6e5ee4f0e2
commit
f0e025bec5
|
|
@ -441,7 +441,7 @@ func SendMail(title, content string) {
|
||||||
em.SmtpPort = 587
|
em.SmtpPort = 587
|
||||||
em.ImapPort = 993
|
em.ImapPort = 993
|
||||||
var targetMails []string
|
var targetMails []string
|
||||||
for _, v := proto.Config.MONITOR_MAIL{
|
for _, v := range proto.Config.MONITOR_MAIL {
|
||||||
targetMails = append(targetMails, v.Value)
|
targetMails = append(targetMails, v.Value)
|
||||||
}
|
}
|
||||||
if targetMails == nil || len(targetMails) == 0 {
|
if targetMails == nil || len(targetMails) == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue