Fix regression

This commit is contained in:
Winni Neessen 2024-11-16 21:46:46 +01:00
parent 427e8fd1ed
commit d8df26bbc8
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -1100,7 +1100,7 @@ func (c *Client) auth() error {
return fmt.Errorf("server does not support SMTP AUTH") return fmt.Errorf("server does not support SMTP AUTH")
} }
var authType SMTPAuthType authType := c.smtpAuthType
if c.smtpAuthType == SMTPAuthAutoDiscover { if c.smtpAuthType == SMTPAuthAutoDiscover {
discoveredType, err := c.authTypeAutoDiscover(smtpAuthType) discoveredType, err := c.authTypeAutoDiscover(smtpAuthType)
if err != nil { if err != nil {