Click or drag to resize

ImapLoginAsync Method

Logs user in using LOGIN command. When LOGIN command is disabled by including the LOGINDISABLED capability this method tries to log-in using UseBestLogin(String, String). Unless SSL/TLS connection is used, this method sends the password in clear text. You can check which authentication methods remote server supports using Capabilities and then AuthenticationMethods method.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task LoginAsync(
	string user,
	string password,
	CancellationToken cancel = default
)

Parameters

user  String
User's login.
password  String
User's password.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

Task
A task that represents the asynchronous login operation.
Exceptions
ExceptionCondition
ImapResponseExceptionThrows ImapResponseException on error response.
See Also