Click or drag to resize

SmtpStartTLSAsync Method

Sends 'STARTTLS' command and initializes SSL/TLS connection (issues EHLO command afterward).

Namespace: Limilabs.Client.SMTP
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
SmtpResponseExceptionThrows SmtpResponseException on error response.
See Also