fix: 多地区outlook邮箱和ofb邮箱Auth

This commit is contained in:
OswinWu committed 2024-08-23 17:16:09 +08:00
1 parent e12516e93d
commit 60448fbd41
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ func SendEmail(subject string, receiver string, content string) error {
if err != nil {
return err
}
} else if strings.HasSuffix(SMTPAccount, "outlook.com") {
} else if isOutlookServer(SMTPAccount) {
auth = LoginAuth(SMTPAccount, SMTPToken)
err = smtp.SendMail(addr, auth, SMTPAccount, to, mail)
} else {