Pop3LoginAsync Method (String, String, String, String, AuthenticationMethods, AuthenticationOptions, SaslMethod)

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> LoginAsync(
	string targetName,
	string domain,
	string accountName,
	string password,
	AuthenticationMethods authMethods,
	AuthenticationOptions authOptions,
	SaslMethod authUserDefined
)

Parameters

targetName
Type: SystemString
The Service Principal Name (SPN) of the POP3 server. Only used with GSSAPI authentication method. If an empty string, NTLM method will be used for GSSAPI. If a null reference (Nothing in Visual Basic), MailBee will autodetect SPN as "POP3/serverName" and use Kerberos for GSSAPI. If set to a non-empty string, MailBee will also select Kerberos for GSSAPI and use this value as SPN.
domain
Type: SystemString
The user account domain on the server. Only used with NTLM and GSSAPI authentication methods. You can leave it a null reference to use the current domain.
accountName
Type: SystemString
The user account name on the server (can be empty for NTLM and GSSAPI).
password
Type: SystemString
The password of the user account on the server.
authMethods
Type: MailBeeAuthenticationMethods
A set of authentication methods which can be used when logging in a mailbox.
authOptions
Type: MailBeeAuthenticationOptions
Specifies the options which affect login process.
authUserDefined
Type: MailBeeSaslMethod
A reference to the instance of user defined authentication method, or a null reference (Nothing in Visual Basic) if user defined authentication is not used.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if a login attempt succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also