diff --git a/notify/impl.go b/notify/impl.go index c680e29f..c42d64b0 100644 --- a/notify/impl.go +++ b/notify/impl.go @@ -283,7 +283,7 @@ func (n *Email) Notify(ctx context.Context, as ...*types.Alert) (bool, error) { if err != nil { return true, err } - c, err = smtp.NewClient(conn, n.conf.Smarthost) + c, err = smtp.NewClient(conn, host) if err != nil { return true, err }