title: POP3 server not found
body: <p>can anyone here help me to solve the exception error "server not found". i believe all the parameter that i set is correct but i wonder why exception still occur.Tq</p>
  
  <p>this is part of my code:</p>
  
  <pre><code>private void button_extract_Click(object sender, RoutedEventArgs e)
  {
    HeadersFromAndSubject("pop@gmail.com",995,true, textbox_email_retriever.Text, 
      passwordBox_Receiver.SecurePassword.ToString(), 10);
  }
  
  public static void HeadersFromAndSubject(string hostname, int port, bool useSsl, 
    string username, string password, int messageNumber)
  {
    using (Pop3Client client = new Pop3Client())
    {
      client.Connect(hostname, port, useSsl); //error in this line
      client.Authenticate(username, password);
    }
  }
  </code></pre>