Link to home
Start Free TrialLog in
Avatar of zipnotic
zipnoticFlag for United States of America

asked on

Gmail with IMAP and SSL in .NET

Hello,

I am creating just a small app in VS 2008 to access a gmail account with IMAP.  Gmail is set up to accept IMAP requests on port 993 and it looks like SSL is mandatory.  I am using the library from:

http://www.codeproject.com/KB/IP/imaplibrary.aspx

which I converted to VB.net

The code hangs indefinitely at:

Try
                eImapResponse = Connect(sHost, nPort)
                If eImapResponse = ImapResponseEnum.IMAP_SUCCESS_RESPONSE Then
                    m_bIsConnected = True
                Else
                    Return
                End If
            Catch e As Exception
                Throw e
            End Try
 

Open in new window


I am thinking there is no SSL support in this library, particularly since people have posted in the comments about adding SSL to the code...  Can anyone point me in the right direction for how this library may be modified to handle SSL?  

Thank You
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial