VS.NET 2010 (and above) Users Click Here   

HOMECONTACT PRODUCTS DOWNLOADS PURCHASE TESTIMONIALS FORUMS COMPANY CONTACT
Home
Products
Downloads
Purchase
Licensing
Licensing FAQ
Software Updates
Support Forums
Testimonials
Feature Requests
Guarantee
About Us
Contact Us
Hosting Companies
Privacy Policy
   
Shopping Cart


aspNetIMAP forum



[ Reply to Post ] [ Back To Forum ]
From: "Luca Del Bon" <l.delbon@...>
Date: 2/7/2017 3:56:50 AM
Subject: Error connecting to gmail account with Oauth2
Hello,
i'm tring to connect to a gmail account using Oauth2 credentials :

try
            {
                // Allocate an IMAP client object
                imapClient = null;



                aspNetIMAP.IMAP4.LoadLicenseKey(@"xxx");
                imapClient = new aspNetIMAP.IMAP4(txtServer.Text);
                imapClient.TimeOut = DEFAULT_TIMEOUT;

                // Define a default timeout
                imapClient.TimeOut = DEFAULT_TIMEOUT;


                // Define a default timeout
                AdvancedIntellect.Ssl.SslSocket ssl = new  AdvancedIntellect.Ssl.SslSocket ();
                ssl.IgnoreInvalidCertificates = true;
                imapClient.LoadSslSocket ( ssl );

                imapClient.Port = 993;
                imapClient.UseSsl = true;

                //this.imapClient.Connect(this.Server);

                // Login to the server using credentials
                imapClient.AuthenticationType = aspNetIMAP.AuthenticationType.OAuth;
                imapClient.OAuthString = @"yyy";

                imapClient.Login ();

                this.imapFolder = imapClient.SelectInbox ();


but i get an error popup : "An invalid Oauth string was entered. (xxxx BAD Invalid SASL argument. yyyyy)" and the code breaks on Login call.

 

 

 



Thread View

Subject By Date
Error connecting to gmail account with Oauth2 [ you are here ] Luca Del Bon 2/7/2017
   RE: Error connecting to gmail account with Oauth2 dave wanta 2/7/2017
     RE: Error connecting to gmail account with Oauth2 Luca Del Bon 2/20/2017
       RE: Error connecting to gmail account with Oauth2 dave wanta 2/20/2017

 

 

Testimonial

Dave, I'm so impressed with your company's fast speed. "

J. Wang

Read more testimonials
ListNanny aspNetDNS aspNetEmail aspNetPOP3 aspNetMX IPMuncher aspNetMIME aspNetPING aspNetTraceRoute aspNetIMAP aspNetMHT