diff --git a/handler/tool.go b/handler/tool.go index 14b24b6..a5192ef 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -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 {