Click or drag to resize

PopClientAuthenticate Method (String, String, PopAuthentication)

Authenticates client with specified user name, password and PopAuthentication mechanism.

Namespace:  GemBox.Email.Pop
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 11.3.30.1034
Syntax
public void Authenticate(
	string userName,
	string password,
	PopAuthentication authentication
)

Parameters

userName
Type: SystemString
The user name.
password
Type: SystemString
The password for the user name.
authentication
Type: GemBox.Email.PopPopAuthentication
A constant that specifies which authentication mechanism to use.
Exceptions
ExceptionCondition
InvalidOperationException Client is not connected or Client is already authenticated.
ArgumentException Specified authentication mechanism is not supported or Specified user name is null or empty or Specified password is null or empty.
Remarks
Method authenticates connected client with remote host. Connected client cannot be reauthenticated. You have to call Disconnect(Boolean) first.
See Also