mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 08:47:12 -06:00
tech(mailer): dont use deprecated method
This commit is contained in:
parent
377d9f4a78
commit
d1d7c240f9
@ -99,7 +99,7 @@ func createDialer() (*gomail.Dialer, error) {
|
||||
tlsconfig.Certificates = []tls.Certificate{cert}
|
||||
}
|
||||
|
||||
d := gomail.NewPlainDialer(host, iPort, setting.Smtp.User, setting.Smtp.Password)
|
||||
d := gomail.NewDialer(host, iPort, setting.Smtp.User, setting.Smtp.Password)
|
||||
d.TLSConfig = tlsconfig
|
||||
return d, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user