// 开始进行服务器认证 
  // 如果状态码是250则表示操作成功 
  if (!Command (tcp.GetStream(), "EHLO Localhost", "250")) 
  throw new Exception ("登陆阶段失败");   if (userName != "") 
  { 
  // 需要身份验证 
  if (!Command (tcp.GetStream(), "AUTH LOGIN", "334")) 
   throw new Exception ("身份验证阶段失败"); 
  string nameB64 = ToBase64 (userName); // 此处将username转换为Base64码 
  if (!Command (tcp.GetStream(), nameB64, "334")) 
   throw new Exception ("身份验证阶段失败"); 
  string passB64 = ToBase64 (password); // 此处将password转换为Base64码 
  if (!Command (tcp.GetStream(), passB64, "235")) 
   throw new Exception ("身份验证阶段失败"); 
  } 
  // 准备发送 
  WriteString (tcp.GetStream(), "mail From: " + from); 
  WriteString (tcp.GetStream(), "rcpt to: " + to); 
  WriteString (tcp.GetStream(), "data"); 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/flamngo/archive/2007/07/19/1698691.aspx
我想用以下这段代码
但是在复制后发现这个command命令和writestring和readstring的命令都是无效的
我要怎么该啊
我使用winform界面写的