This project is read-only.

Timeout on Authentication

Jun 4, 2012 at 11:29 AM

I am using the following code:

HigLabo.Net.Pop3.Pop3Client cl = new HigLabo.Net.Pop3.Pop3Client();
cl.ServerName = "pop.gmail.com";//"your server name";
cl.UserName = "test@example.com";//"your name";
cl.Password = "123456";//"pass";
cl.Ssl = false;
 if (cl.Authenticate() == true) //Response.Time out
{
        Int32 MailIndex = 1;
         MailMessage mg = cl.GetMessage(MailIndex);
         String mailTo = mg.To;
        String mailCc = mg.Cc;
         String title = mg.Subject;
         String bodyText = mg.BodyText;
}
What could be the possible solution to it?

Jun 4, 2012 at 12:44 PM

Use ssl = true and port 995 with GMail accounts.

Jun 4, 2012 at 1:06 PM

Thanks. Solved.