Read Mail - tcp

  • Thread starter Thread starter win
  • Start date Start date
W

win

I tried

using (TcpClient client = new TcpClient("pop.gmail.it" , 110 ))
using (NetworkStream n = client.GetStream())
{
ReadLine(n);
SendCommand(n, "USER user");
SendCommand(n, "PASS pw");

but it tells me Login Failed

Can you help?

Thanks.
 
Assuming user and pw are placeholders, what if you test using telnet ? Do
you read the response after the first command ? Is your account POP enabled
and are the parameters correct (you should have those on your account) ? At
least in some countries it seems Ssl is required...

You could try for example :
http://www.dotnetspider.com/resources/19151-ASP-net-Read-Email.aspx

--
Patrice

"win" <[email protected]> a écrit dans le message de groupe de
discussion :
(e-mail address removed)...
 
Back
Top