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.
Replies
Know the answer? Post it — somebody with the same question will find it here.