|
|
@@ -5,6 +5,7 @@ import (
|
|
|
"encoding/base64"
|
|
|
"fmt"
|
|
|
"net/smtp"
|
|
|
+ "slices"
|
|
|
"strings"
|
|
|
"time"
|
|
|
)
|
|
|
@@ -79,7 +80,7 @@ func SendEmail(subject string, receiver string, content string) error {
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
- } else if isOutlookServer(SMTPAccount) || SMTPServer == "smtp.azurecomm.net" {
|
|
|
+ } else if isOutlookServer(SMTPAccount) || slices.Contains(EmailLoginAuthServerList, SMTPServer) {
|
|
|
auth = LoginAuth(SMTPAccount, SMTPToken)
|
|
|
err = smtp.SendMail(addr, auth, SMTPFrom, to, mail)
|
|
|
} else {
|