This commit is contained in:
parent
96712fb066
commit
641fe352da
2 changed files with 3 additions and 2 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 08a301d53a39d0a67a2714caef9866c1eeaa4ee3
|
||||
Subproject commit 997b73312aad0fd8caae91cd1fde386701ce37c0
|
|
@ -77,11 +77,12 @@ func (client *SMTP) Init() {
|
|||
d := mail.NewDialer(client.Config.Host, client.Config.Port, client.Config.User, client.Config.Password)
|
||||
d.Timeout = time.Duration(client.Config.Keepalive+5) * time.Second
|
||||
client.chOpen = true
|
||||
|
||||
// 是否启用 SSL
|
||||
d.SSL = false
|
||||
if client.Config.Encryption {
|
||||
d.SSL = true
|
||||
}
|
||||
d.StartTLSPolicy = mail.OpportunisticStartTLS
|
||||
|
||||
var s mail.SendCloser
|
||||
var err error
|
||||
|
|
Loading…
Add table
Reference in a new issue