SmtpClientSendAsync Method (IConnection, MailMessageCollection, CancellationToken)

Send the specified message collection.

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

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
messages
Type: Aspose.EmailMailMessageCollection
The collection of messages.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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