Click here to Skip to main content
15,904,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,
I am using OpenPop.Net library to read mails in my asp.net application.The problem is that with port 995 or 587 i am getting
C#
the handshake failed due to an unexpected packet format 


this is the code that i am using

C#
Pop3Client pop3Client = new Pop3Client();
pop3Client.Connect(MailServer, Port, chkSSL);

pop3Client.Authenticate(UserName,Password);
Session["Pop3Client"] = pop3Client;


the exception occurs in the Connect method.
Posted

1 solution

You need to connect to a port that is listening. If you're using non-encrypted POP3 then use port 110. Port 587 is nothing to do with POP3.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900