fix(mail): set server name in tls config so that sending mail works with skipTlsVerify set to false
This commit is contained in:
parent
b9793a267b
commit
b1892eaf63
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ func getClient() (*mail.Client, error) {
|
|||
//#nosec G402
|
||||
mail.WithTLSConfig(&tls.Config{
|
||||
InsecureSkipVerify: config.MailerSkipTLSVerify.GetBool(),
|
||||
ServerName: config.MailerHost.GetString(),
|
||||
}),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue