Commit f68fed0a authored by szh's avatar szh

empty toAddress name

parent 5cc0bcf0
......@@ -10,7 +10,7 @@ func SendToMail(message string, toAddr string) error {
m := gomail.NewMessage()
m.SetAddressHeader("From", setting.EmailSetting.Sender, setting.EmailSetting.Name) // 发件人
m.SetHeader("To", // 收件人
m.FormatAddress(toAddr, "wkf"),
m.FormatAddress(toAddr, ""),
)
m.SetHeader("Subject", "节点监控异常") // 主题
m.SetBody("text/html", message) // 正文
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment