From d8df26bbc88536dc2afcab5ab438b12a6eb32627 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 16 Nov 2024 21:46:46 +0100 Subject: [PATCH] Fix regression --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {