Showing error while connecting outlook inbox using IMAP in C#

Rohith K 0 Reputation points
2023-10-06T06:33:11.1133333+00:00

I am trying to connect to my Outlook Inbox using IMAP by using app password and username as the credentials. But whenever I execute the code it shows "MailKit.Security.AuthenticationException: 'LOGIN failed.'" in the line client.Authenticate(username, password). Please help me solve this issue.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,565 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.