Click or drag to resize

SmtpSendMessageAsync(SmtpMail, CancellationToken) Method

Sends a single message.

Namespace: Limilabs.Client.SMTP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<ISendMessageResult> SendMessageAsync(
	SmtpMail smtpMail,
	CancellationToken cancel = default
)

Parameters

smtpMail  SmtpMail
SmtpMail message to send.
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