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.
36,638 questions
0 comments No comments
{count} votes