Oh,
one more thing. When in doubt, consult Wikipedia :-)
http://en.wikipedia.org/wiki/Web_proxy
--
Nathan
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello. I'm writing a VB.NET app to check email message counts for both
> POP3 and IMAP4. I'm using TCPClient to connect, and a NetworkStream to
> send simple commands. It's a very simple bit of code, actually... the
> problem is, if the user is behind a proxy, then the Connect method
> fails (times out).
>
> How do I get around this? I thought this would be a common issue and
> that there would be plenty of code out there to demonstrate how to
> connect to mail servers from behind a proxy, but so far, all I've found
> is people with the same problem as me, but no answers.
>
> If there's a better object to use than TCPClient, then please post
> example of how to implement the proxy, as well as how to send
> commands/receive responses. Solutions in VB.NET or C# will do, I can
> always convert code, if necessary.
>
> Any help is appreciated. Thank you.
>
>
> WATYF
>
>
> (the next step will be coding for POP3 SSL connectivity, but that can
> wait until I get over this hurdle.)
>