so, i got mailsystem.net from codeplex(http://mailsystem.codeplex.com/), to write pop3 client. problem is, i want to use http proxy. found some hints at:
How to open socket thru proxy server in .Net C#?
and here is my code:
Pop3Client pop = new Pop3Client();
Socket sock = new Socket(AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.Tcp);
sock.Connect("79.172.35.74", 82); // here is proxy
sock.Send(Encoding.UTF8.GetBytes("CONNECT pop.yandex.ru:110 HTTP/1.1<CR><LF>")); // here pop3 server
sock.Send(Encoding.UTF8.GetBytes("<CR><LF>"));
byte[] buffer = new byte[25];
sock.Receive(buffer);
pop.Client = sock;
pop.Connect(config.pop3.host, config.pop3.username, config.pop3.password);
so, it fails at last line, with socket exception. what can i do? or any free pop3client libraries with proxy support?