atilla guven

atilla guven

  • NA
  • 1
  • 1.1k

Need stream without SSL

Jul 19 2012 8:53 AM
Hi, today I tried to write a web application that tried to read my inbox which's outgoing server is mail.speksa.com and outgoing port is 110.
When I tried these code
 TcpClient client = new TcpClient();
            client.Connect("pop.gmail.com",995);
            SslStream sslstream = new SslStream(client.GetStream());
            sslstream.AuthenticateAsClient("pop.gmail.com");

It is ok for gmail but when I change it the server and port for my business mail like that;

 TcpClient client = new TcpClient();
            client.Connect("mail.speksa.com",110);
            SslStream sslstream = new SslStream(client.GetStream());
            sslstream.AuthenticateAsClient("mail.speksa.com");

But when I try to use it, I get an error about handshaking beacuse of the unexpected package sslstream.AuthenticateAsClient("mail.speksa.com"); at this line
and also I know that Web site does not use SSL. Is there anyway to convert that without using outlook or any other programs. Thnx for your interest.