tech(mailer): dont use deprecated method

This commit is contained in:
bergquist 2016-11-02 22:11:59 +01:00
parent 377d9f4a78
commit d1d7c240f9

View File

@ -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
}