Jan 29, 2014 at 8:29 PM
Hi. here is my code, it had worked perfectly fine before, but today it just stopped working and threw an exception at IMAPClient.Authenticate(). Dose anyone have any idea? Thanks in advance
        Dim IMAPClient As New Imap.ImapClient("imap.gmail.com")

        IMAPClient.ServerName = "imap.gmail.com"
        IMAPClient.Port =993
        IMAPClient.UserName = "xxx@gmail.com"
        IMAPClient.Password = "xxx"
        IMAPClient.ReceiveTimeout = 20 * 1000
        IMAPClient.Ssl = True
        If (IMAPClient.Authenticate() = True) Then
        end if
Feb 6, 2014 at 10:36 PM
Recently, I have had a trouble caused by jstedfast.

I had taken so much time to handling it.
I suggest that network settings or other may cause your problem.
Because it worked before.

If I could have a time, I'll check my library.
Please wait for it.

Feb 11, 2014 at 2:15 PM

I have the same problem that amyyou noticed.

I tried to run the same code from the documentation for the gmail inbox, but it doesn't work, throwing an exception with no message

Thank you in advance! :)
Feb 11, 2014 at 3:12 PM
Hello again!

I believe there is a problem with the constructor because:
  • When I write :
using (var cl = new ImapClient("imap.gmail.com"))
                cl.Port = 993;
                cl.Ssl = true;
                cl.UserName = "shtefanntz@gmail.com";
                cl.Password = "Nokiangage1";
              //  cl.ServerName = "imap.gmail.com";
                bool bl = cl.Authenticate();
it throws the messageless exception. But if I decomment the line with cl.ServerName = "imap.gmail.com", the Authenticate method work well.

Unfortunately, this observation doesn't help amyyou, but I thought that it might help others :)

Feb 11, 2014 at 4:16 PM
Thank you for your report.

Actually, StefanTurcanu's way resolve problem.
The bug is the value you passed to constructor never set to ServerName.
Please check ServerName property' value by debugger.

Perhaps I checked in bad version by mistake.
Amyyou, what's version do you use?
I will fix it latest version.