0 votes

Hello!
Please tell me how to handle the wrong authorization error.
I use the following code:

smtp.UseBestLogin(Login_mail, Password_mail);

Thanks

by (660 points)
What is the exception message, type and stack trace?

1 Answer

0 votes

Please double check if credentials you provided are correct.

Some SMTP servers don't require authentication at all, consult your server administrator, and remove login line (UseBestLogin) if that is the case.

by (297k points)
...