Add config option to force ssl connections to connect with the mailer

This commit is contained in:
kolaente 2020-07-14 17:30:39 +02:00
parent 222582fb0c
commit 092aae3260
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 7 additions and 0 deletions

View file

@ -34,6 +34,7 @@ func getDialer() *gomail.Dialer {
InsecureSkipVerify: config.MailerSkipTLSVerify.GetBool(),
ServerName: config.MailerHost.GetString(),
}
d.SSL = config.MailerForceSSL.GetBool()
return d
}