Exemplo n.º 1
0
 public void ConnectTest()
 {
     using (var client = new Pop3Client()) {
         client.Security = SecurityPolicies.Explicit;
         client.Connect("pop.gmail.com", 995);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Attempt to notify the application that automatic sasl authentication is not possible.
 ///   The ManualSaslAuthenticationRequired event wil be thrown.
 /// </summary>
 /// <param name = "credential">The credentials provided by the user.</param>
 /// <param name = "client">The current instance of the client, responsiblle for the connection.</param>
 /// <returns>Returns whether the client should cancel the authentication request.</returns>
 private bool InvokeManualSaslAuthenticationRequired(NetworkCredential credential, Pop3Client client)
 {
     var handler = ManualSaslAuthenticationRequired;
     if (handler != null) {
         var e = new ManualSaslAuthenticationRequiredEventArgs(credential, client);
         handler(this, e);
         return e.IsAuthenticated;
     }
     return false;
 }
 public ManualSaslAuthenticationRequiredEventArgs(NetworkCredential credential, Pop3Client client)
 {
     Client = client;
     UserCredentials = credential;
 }
Exemplo n.º 4
0
 public Pop3Authenticator(Pop3Client client)
 {
     _client = client;
 }
 public ManualSaslAuthenticationRequiredEventArgs(NetworkCredential credential, Pop3Client client)
 {
     Client          = client;
     UserCredentials = credential;
 }
Exemplo n.º 6
0
 public Pop3Authenticator(Pop3Client client)
 {
     _client = client;
 }