mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 16:27:02 -06:00
feat(mailer): set localname to hostname
Some email providers does not accept localhost in the HELO message. So we set it to hostname instead. Our hope is that should be enough for those providers who does not accept localhost. closes #7223
This commit is contained in:
parent
276916cd5d
commit
4ea4e0436a
@ -101,6 +101,7 @@ func createDialer() (*gomail.Dialer, error) {
|
||||
|
||||
d := gomail.NewDialer(host, iPort, setting.Smtp.User, setting.Smtp.Password)
|
||||
d.TLSConfig = tlsconfig
|
||||
d.LocalName = setting.InstanceName
|
||||
return d, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user