Gmail with IMAP and SSL in .NET

zipnotic used Ask the Experts™

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:

which I converted to

The code hangs indefinitely at:

                eImapResponse = Connect(sHost, nPort)
                If eImapResponse = ImapResponseEnum.IMAP_SUCCESS_RESPONSE Then
                    m_bIsConnected = True
                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
Watch Question

Do more with

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

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