Subject: Cannot Decode response from Gmail on Authenticate to SMTP via OAUTH2
Date: 2022-08-26 14:01:46
From: yurienricardo
Source: cannot-decode-response-gmail-authenticate-smtp-via-oauth2
----------------------------------------------------------------------

Hi, we are able to connect to **smtp.gmail.com** via Connect("smtp.gmail.com", 465, ComponentPro.Net.SslSecurityMode.Implicit) and is succesfull.
Issue is when Authenticating via **AuthenticateAsync(gmailToken, SmtpAuthenticationMethod.OAuth20)** using token that is enabled and tested on other apps.

We receive the exception with message

**Cannot Decode response g6-20020a05660226c600b006814fd71117sm1102768ioo.12 - gsmtp (501).**

Any help will be appreciated.
Thanks

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index