mirror of https://github.com/bjdgyc/anylink.git
修复邮件 STARTTLS 协议
This commit is contained in:
parent
0f8877bafc
commit
ace4ef08d9
|
@ -73,7 +73,7 @@ func SendMail(subject, to, htmlBody string) error {
|
||||||
// - PLAIN (default)
|
// - PLAIN (default)
|
||||||
// - LOGIN
|
// - LOGIN
|
||||||
// - CRAM-MD5
|
// - CRAM-MD5
|
||||||
server.Authentication = mail.AuthPlain
|
server.Authentication = mail.AuthAuto
|
||||||
|
|
||||||
// Variable to keep alive connection
|
// Variable to keep alive connection
|
||||||
server.KeepAlive = false
|
server.KeepAlive = false
|
||||||
|
|
Loading…
Reference in New Issue