by Robin at 20240823 #706

Merged
chenhao merged 1 commits from feat-IRONFANS-210-Robin into test 2024-08-23 16:39:39 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func SendRavenIQTestResult(mail *dbstruct.Email, address, password string) error
m.SetBody("text/html", body.String()) m.SetBody("text/html", body.String())
m.Attach(url) m.Attach(url)
err := gomail.NewDialer("smtp.qq.com", 465, address, password).DialAndSend(m) err := gomail.NewDialer("smtp.office365.com", 587, address, password).DialAndSend(m)
if err != nil { if err != nil {
logger.Error("Send Email Fail", err) logger.Error("Send Email Fail", err)
return err return err