SmtpClientSendAsync Method (IConnection, CancellationToken, MailMessage)

Send the specified message.

Namespace:  Aspose.Email.Clients.Smtp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task SendAsync(
	IConnection connection,
	CancellationToken token,
	params MailMessage[] messages
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
messages
Type: Aspose.EmailMailMessage
The array of MailMessage that represents an email-messages to send.

Return Value

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