Click or drag to resize

ImapStartTLSAsync Method

Sends 'STARTTLS' command and initializes SSL/TLS connection. Not all servers support StartTLS. You can check which extensions remote server supports using SupportedExtensions method.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task StartTLSAsync(
	CancellationToken cancel = default
)

Parameters

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 STARTLS operation.
Exceptions
ExceptionCondition
ImapResponseExceptionThrows ImapResponseException on error response.
See Also