Error Connecting to GMail

Nov 6, 2009 at 7:54 PM

I just ran across this project and it really looks like something I'll be able to use, but I'm unable to get it to work.  I'm trying to connect to my GMail account for testing purposes with the following configuration entries:

  • Server
    • Host: smtp.gmail.com
    • Username: ****@gmail.com
    • Password and Password Verify: (My password correctly entered)
  • Defaults
    • Root Folder: Inbox
    • Local Cache File: c:\test_cache.xml
    • Local Cache Format: XML
    • Log File: C:\test.log
  • Options
    • All options Checked

When I run the InterIMAPConsoleTest under the InterIMAP solution, I'm getting the following output:

 

C:\Documents and Settings\aspears>"D:\VisualStudio2008\InterIMAP (Changeset 2399
5)\InterIMAP\InterIMAPConsoleTest\bin\Debug\InterIMAPConsoleTest.exe"
11/6/2009 3:45:28 PM - ------------------------------------------------------
11/6/2009 3:45:28 PM - INFO: InterIMAP Client Initialized
Certificate error: RemoteCertificateNameMismatch
Exception: The remote certificate is invalid according to the validation procedu
re.
Authentication failed - closing the connection.
11/6/2009 3:45:29 PM - INFO: Login Successful
11/6/2009 3:45:29 PM - IMAP001 LIST Inbox "*"
Error in the application.
C:\Documents and Settings\aspears>

 

11/6/2009 3:45:28 PM - ------------------------------------------------------

11/6/2009 3:45:28 PM - INFO: InterIMAP Client Initialized

Certificate error: RemoteCertificateNameMismatch

Exception: The remote certificate is invalid according to the validation procedure.

Authentication failed - closing the connection.

11/6/2009 3:45:29 PM - INFO: Login Successful

11/6/2009 3:45:29 PM - IMAP001 LIST Inbox "*"

Error in the application.

 

Any ideas on why it won't connect to GMail?  Any help would be greatly appreciated.

 

Nov 9, 2009 at 12:25 PM

I got it working, I didn't have IMAP configured in GMAIL and the Host setting was wrong.

Apr 7, 2010 at 5:41 PM

I had to also ensure I was connecting SSL