forked from vikunja/vikunja
fix(mailer): forcessl config (#60)
Co-authored-by: Rein-R3 <rein@reinsan.top> Reviewed-At: https://github.com/go-vikunja/api/pull/60
This commit is contained in:
parent
3329d83363
commit
4b5e65d4c2
@ -58,6 +58,10 @@ func getClient() (*mail.Client, error) {
|
||||
mail.WithTimeout((config.MailerQueueTimeout.GetDuration() + 3) * time.Second), // 3s more for us to close before mail server timeout
|
||||
}
|
||||
|
||||
if config.MailerForceSSL.GetBool() {
|
||||
opts = append(opts, mail.WithSSL())
|
||||
}
|
||||
|
||||
if config.MailerUsername.GetString() != "" && config.MailerPassword.GetString() != "" {
|
||||
opts = append(opts, mail.WithSMTPAuth(authType))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user