L
Lovely Stone
I want to use class of TcpClient in C# to read email, the codes is as follows:
TcpClient client = new TcpClient(strHostName, nPort);
NetworkStream ns = client.GetStream();
StreamWriter sw = new StreamWriter(ns);
sw.WriteLine("USER myAccountName");
The last line of code execution prompt me : "-ERR Command is not valid in
this state." ==> what should I do before sw.WriteLine("USER myAccountName"); ?
(The pop3 server is exchange2007)
TcpClient client = new TcpClient(strHostName, nPort);
NetworkStream ns = client.GetStream();
StreamWriter sw = new StreamWriter(ns);
sw.WriteLine("USER myAccountName");
The last line of code execution prompt me : "-ERR Command is not valid in
this state." ==> what should I do before sw.WriteLine("USER myAccountName"); ?
(The pop3 server is exchange2007)