"Unrecognized authentication type" when calling UseBestLogin

0 votes

Limilabs.Client.SMTP.SmtpResponseException: Unrecognized authentication type
   at Limilabs.Client.SMTP.Smtp. (String user, String password)
   at Limilabs.Client.SMTP.Smtp.UseBestLogin(String user, String password)
   at EmailReceiver.EmailProcessor.SendMessage(EmailInboxSettings settings, IList`1 recipients, String subject, String body)

What are possible causes and solutions?


asked Mar 2 by manvlad (200 points)
retagged Mar 2 by Limilabs support

1 Answer

0 votes

1) There is a good chance your SMTP server doesn't require authentication at all.
Simply comment-out the UseBestLogin line and check.

// client.UseBestLogin("user", "pass");

2) Make sure you use default port for submitting emails (587) not port 25.
Use Connect method without specifying port.

client.UseBestLogin("user", "pass");

3) Try using SSL (ConnectSSL):

client.UseBestLogin("user", "pass");

4) Turn on logging:

answered Mar 2 by Limilabs support (200,970 points)