Pop3Client.Authenticate(String, String, AuthenticationMethod) Method

OpenPop.NET

OpenPop.NET POP3 Library Documentation

Pop3Client.Authenticate(String, String, AuthenticationMethod) Method

Authenticates a user towards the POP server using some AuthenticationMethod.

public void Authenticate(
   string username,
   string password,
   AuthenticationMethod authenticationMethod
);

Parameters

username
The username
password
The user password
authenticationMethod
The way that the client should authenticate towards the server

Exceptions

Exception Type Condition
NotSupportedException If Apop is used, but not supported by the server
InvalidLoginException If the user credentials was not accepted
PopServerLockedException If the server said the the mailbox was locked
ArgumentNullException If username or password is a null reference
LoginDelayException If the server rejects the login because of too recent logins

See Also

Pop3Client Class | OpenPop.Pop3 Namespace | Pop3Client.Authenticate Overload List