Click or drag to resize

SmtpTestMessageEnvelopeAsync(String, String, CancellationToken) Method

Sends message envelope to the SMTP server. Doesn't send or verify message contents. It can be used to verify if SMTP server accepts sender and recipient addresses.

Namespace: Limilabs.Client.SMTP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<ISendMessageResult> TestMessageEnvelopeAsync(
	string from,
	string to,
	CancellationToken cancel = default
)

Parameters

from  String
From address (FROM).
to  String
To address (RCPT TO).
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

TaskISendMessageResult
Result of the sending operation. You can examine Status property to check if the operation succeed.
See Also