Pop3Client.Authenticate(String, String) Method

OpenPop.NET

OpenPop.NET POP3 Library Documentation

Pop3Client.Authenticate(String, String) Method

Authenticates a user towards the POP server using Auto.
If this authentication fails but you are sure that the username and password is correct, it might be that that the POP3 server is wrongly telling the client it supports Apop. You should try using Authenticate while passing UsernameAndPassword to the method.

public void Authenticate(
   string username,
   string password
);

Parameters

username
The username
password
The user password

Exceptions

Exception Type Condition
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