修复邮件 STARTTLS 协议

This commit is contained in:
bjdgy 2024-03-09 08:13:56 +08:00
parent 0f8877bafc
commit ace4ef08d9
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ func SendMail(subject, to, htmlBody string) error {
// - PLAIN (default)
// - LOGIN
// - CRAM-MD5
server.Authentication = mail.AuthPlain
server.Authentication = mail.AuthAuto
// Variable to keep alive connection
server.KeepAlive = false