diff --git a/client.go b/client.go index 5d0e797..4d1b0b1 100644 --- a/client.go +++ b/client.go @@ -578,6 +578,7 @@ func (c *Client) SetPassword(password string) { // SetSMTPAuth overrides the current SMTP AUTH type setting with the given value func (c *Client) SetSMTPAuth(authtype SMTPAuthType) { c.smtpAuthType = authtype + c.smtpAuth = nil } // SetSMTPAuthCustom overrides the current SMTP AUTH setting with the given custom smtp.Auth