Replies: 1 comment
-
I've answered this question in the FAQ. You either need to enable 2FA and create an "app password" -or- you need to follow the directions for authenticating with OAuth2 which I've documented here: GMailOAuth2.md Google does not support any other way. Sorry :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using MailKit for the first time and I want to get emails from my gmail account.
This is the error I am encountering:
Unhandled exception. MailKit.Security.AuthenticationException: Authentication failed.
at MailKit.Net.Imap.ImapClient.ProcessAuthenticateResponse(ImapCommand ic, SaslMechanism mechanism)
at MailKit.Net.Imap.ImapClient.Authenticate(SaslMechanism mechanism, CancellationToken cancellationToken)
at PasswordRetrievalService.FetchEmail(String username, String password, String senderEmail)
This is my code so far:
I do not have 2FA for this account and I do not want to add one because I am using it as part of test automation. Please advice on how to move forward 🙏🏾
Beta Was this translation helpful? Give feedback.
All reactions