POP3 with Gmail - not authenticating

Nov 2, 2011 at 3:07 PM

Hi,

I'm using equinox build 11903.

I'm struggling to connect to a gmail account using POP3. I've enabled pop3 for this account, and I'm succesfully retrieving mail using Outlook.

According to Google, I should use SSL - I believe this means I should use "explicit", yes?

But it seems that authentication fails.... (the IsAuthenticated property returns False)

 

Any advice?   Or could you post a simple sample app that shows how to use POP3 to connect to Gmail?

 

My code:

 

Using PC = New Crystalbyte.Equinox.Pop3.Pop3Client 

PC.Security = Crystalbyte.Equinox.Security.SecurityPolicies.Explicit

PC.Connect("pop.gmail.com", 995)

PC.Authenticate("username@gmail.com", "mypassword123")

 Console.WriteLine(PC.IsAuthenticated)

 Dim R = PC.Top(1, 20)

 

 Console.WriteLine("Headers: ")

  For Each H In R.Headers

 

       Console.WriteLine(" {0} : {1}", H.Name, H.Value)

  Next

 

End Using 

Coordinator
Nov 3, 2011 at 2:40 AM
Edited Nov 3, 2011 at 2:42 AM

Hi,

Google usually does not publish authentication mechanisms, which means the client will not be able to automatically sign you in.

You should try specifying the mechanism to be used manually by adding it as a third param to the "Authenticate" method.

PC.Authenticate("username@gmail.com", "mypassword123", SaslMechanics.Login)

Regards Alex