This project is read-only.

Use Mail Imap with Socks proxy server

Jun 7, 2013 at 2:45 PM
Edited Jun 7, 2013 at 2:45 PM
Hello, I need to connect and read mails from IMAP through a socks5 proxy server.

I'm looking at the code but I can not realize how it would be coded to do so, anyone know which way I should go?
Thanks in advance.
Jun 11, 2013 at 12:09 AM

Set proxy server name to ServerName property of ImapClient object.

ImapClient cl = new ImapClient();
cl.ServerName = "proxy server name";

Sep 3, 2013 at 7:06 PM
Sorry, but when I use the last version of HigLabo the ImapClient class has no constructor without parameters as is in your example.
when I use:
var cl = new ImapClient("serverName",443,"userName","password");
cl.ServerName = "proxy server name";

I can't figure it out how it will work if "serverName" and cl.ServerName are actually the same variable... I need to do something like this
var cl = new ImapClient("",443,"userName","password");
cl.ProxyServerName = "";
cl.ProxyServerPort = 8080;

Can it be done? how?

Thanks in advance.
Sep 4, 2013 at 11:09 AM
Please try it.

var cl = new ImapClient("Proxy server name",443,"userName","password");

Can it connect Imap server?
Sep 4, 2013 at 1:34 PM
Ok, just tried and I didn't work.
It connects but fails when imap query its sends, how it will know the email server host name if I didn't specified anywhere?
Sep 5, 2013 at 2:20 AM
I don't have the environment of proxy server.
I was wondering if I could test in your environment.
If you could create a test account for me in your environment, I will test for you.
Please send me a mail.