diff --git a/client.go b/client.go index 98aea82..028e277 100644 --- a/client.go +++ b/client.go @@ -1017,9 +1017,6 @@ func (c *Client) DialToSMTPClientWithContext(ctxDial context.Context) (*smtp.Cli if err != nil { return nil, err } - if client == nil { - return nil, fmt.Errorf("SMTP client is nil") - } if c.logger != nil { client.SetLogger(c.logger)