d.termini
  • d.termini
  • 50.75% (Neutral)
  • Newbie Topic Starter
2 years ago
Hello, I'm trying to send a mail with Google SMTP using OAuth2 as authentication but I get "Invalid sequence for AUTH XOAUTH2!" as exception.
I'm on trial mode to evaluate the library before purchase.
https://www.emailarchitect.net/easendmail/sdk/html/object_oauth.htm 
The Google OAuth client is correctly configured.

What should I look for?

Thank you
ivan
  • ivan
  • 100% (Exalted)
  • Administration
2 years ago
Hi, thanks for using our software.

It looks that you didn't enable SSL/TLS connection, did you set
oServer.ConnectType = SmtpConnectType.ConnectSSLAuto

After you install EASendMail on your machine, please refer the sample project in

C:\Program Files (x86)\EASendMail\Samples_NetDesktop\C#\Oauth

It is well tested.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.