Esempio n. 1
0
 private bool Conn(string Server, string user, string pass)
 {
     try
     {
         pop3 = new POP(Server, user, pass, 110);
         ns   = pop3.Connect();
         if (pop3.GetNumberOfNewMessages() == "Unable")//如果登录错误
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
     catch { return(false); }
 }