From 9459a2a2f5096c4db34e0dca87c6e5d49701110e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92=E9=87=8E=E7=84=A1=E7=87=88?= Date: Mon, 13 Apr 2020 20:04:39 +0800 Subject: [PATCH] notify/email.go: fixup smtp.NewClient second param --- backend/app/notify/email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/notify/email.go b/backend/app/notify/email.go index f9800947..48dc24c8 100644 --- a/backend/app/notify/email.go +++ b/backend/app/notify/email.go @@ -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") }