SmtpClientSendAsync Method (MailMessage, CancellationToken)

Send the specified message.

Namespace:  Aspose.Email.Clients.Smtp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task SendAsync(
	MailMessage message,
	CancellationToken token
)

Parameters

message
Type: Aspose.EmailMailMessage
The MailMessage that represents an email-message.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task
Task object, with delegate for this operation
See Also