Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Can't connect to Imap gmail

$
0
0
Hi,

I don't know if it is a firewall issue, but I can't connect to imap gmail. Here is the code I am using:
ImapClient client = new ImapClient("imap.gmail.com",993,true,true);
            client.IsDebug = true;
            result = client.Connect();
if(result)
{
  // Do something
}
The problem is in client.connect() as it always returns false. Here is the exception from the output console - A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
The thread '<Thread Ended>' (0x2a70) has exited with code 0 (0x0)

Do you have some pointers regarding how can I resolve this issue?

Thanks in advance.

Viewing all articles
Browse latest Browse all 1952


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>