Closed LorenzoLeonardo closed 1 year ago
Hi,
The code looks fine. If you are using Gmail, you need to obtain an App password for your account, see https://support.google.com/accounts/answer/185833?hl=en. I haven't tried running an OAuth flow against Gmail and I am not sure if it is allowed by Google.
Microsoft already fix their side, this is now working. Closing the issue.
Hello
Do you have a sample in your code that will successfully email using SMPT XOAUTH2?
Url and scopes used to get token.
This is the sample code I created
But I got this error. AuthenticationFailed(Response { code: 535, esc: [5, 7, 8], message: "Username and Password not accepted. Learn more at\n https://support.google.com/mail/?p=BadCredentials p5-20020a1709028a8500b001ab0d815dbbsm2483183plo.23 - gsmtp" })
I there any lacking in building the email?