Skip to content

Commit

Permalink
Merge pull request #13 from veops/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ttktatakai authored Feb 8, 2024
2 parents 567b329 + 5884d50 commit 7465321
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 7465321

Please sign in to comment.