Avatar of zipnotic
zipnotic
Flag 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
Email SoftwareSSL / HTTPSVisual Basic.NET

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.
fblack61