This project is read-only.

SSL= true generates exception

Jun 4, 2012 at 11:31 AM

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;
}

 

The exception is:

Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Jun 4, 2012 at 12:37 PM
Edited Jun 4, 2012 at 12:37 PM
cl.Port = 995;
cl.Ssl = true;
http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
Jun 4, 2012 at 1:05 PM

Thanks. It is solved now.