SmtpClientSendAsync Method (IConnection, IEnumerableMailMessage)

Send the specified messages.

Namespace:  Aspose.Email.Clients.Smtp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task SendAsync(
	IConnection connection,
	IEnumerable<MailMessage> messages
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
messages
Type: System.Collections.GenericIEnumerableMailMessage
The IEnumerator that supports a message iteration.

Return Value

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