smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

Can I use a proxy server to receive mail by S22.Imap? #100

Open 632575987 opened 9 years ago

632575987 commented 9 years ago

Sometimes I need to connect internet through a proxy server, Can I use S22.Imap to receive mail through a proxy server?

jstedfast commented 9 years ago

It does not appear (to me, at least) that there is a way to connect to an IMAP server via a proxy in S22.Imap, however, it is possible to do in MailKit using the ImapClient.Connect() method that takes a System.Net.Socket.

What you would need to do is make a connection via your proxy using plain TCP sockets and then, once connected, pass that into ImapClient.Connect().

Hope that helps!

saadmr commented 6 years ago

i need to know what it take socket in this method client.connect(socket,string host, int port ....); i need a example please if you can write it , i need to use a proxy to open my emails