notify/email.go: fixup smtp.NewClient second param

This commit is contained in:
荒野無燈
2020-04-13 14:02:00 -05:00
committed by Umputun
parent 200f464925
commit 9459a2a2f5
+1 -1
View File
@@ -467,7 +467,7 @@ func (s *emailClient) Create(params SmtpParams) (smtpClient, error) {
return nil, errors.Wrapf(err, "timeout connecting to %s", srvAddress)
}
c, err = smtp.NewClient(conn, srvAddress)
c, err = smtp.NewClient(conn, params.Host)
if err != nil {
return nil, errors.Wrap(err, "failed to dial")
}