diff --git a/client.go b/client.go index a611d4c..c301f45 100644 --- a/client.go +++ b/client.go @@ -1100,7 +1100,7 @@ func (c *Client) auth() error { return fmt.Errorf("server does not support SMTP AUTH") } - var authType SMTPAuthType + authType := c.smtpAuthType if c.smtpAuthType == SMTPAuthAutoDiscover { discoveredType, err := c.authTypeAutoDiscover(smtpAuthType) if err != nil {