Gmail with IMAP and SSL in .NET

zipnotic
zipnotic used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial