xhit/go-simple-mail

No SMTP Client Provided if authentication fails

Closed this issue · 0 comments

xhit commented

If ConnectTimeout is 0 (means no timeout) and credentials are not correct (incorrect username or password or both) then the returned SMTPClient is nil and error too.

The error Mail Error: No SMTP Client Provided is displayed instead and authentication error.