Skip to content

Commit

Permalink
feat: 994 ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
ttktatakai committed Feb 8, 2024
1 parent ddd691f commit 5884d50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions send/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ func (e *email) send(msg *message) (err error) {
}, func() *gomail.Dialer {
return gomail.NewDialer(e.conf["host"], cast.ToInt(e.conf["port"]), e.conf["account"], e.conf["password"])
})
if cast.ToInt(e.conf["port"]) == 994 {
e.d.SSL = true
}
if !cast.ToBool(e.conf["tls"]) {
e.d.TLSConfig = &tls.Config{InsecureSkipVerify: true}
}
Expand Down

0 comments on commit 5884d50

Please sign in to comment.