Click or drag to resize

SmtpCloseAsync(Boolean, CancellationToken) Method

Sends QUIT command. Disconnects and releases all resources acquired by this object.

Namespace: Limilabs.Client.SMTP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task CloseAsync(
	bool throwException,
	CancellationToken cancel = default
)

Parameters

throwException  Boolean
If true throws SmtpResponseException on error response.
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 close operation.
See Also