SmtpClientSendAsync Method (IConnection, 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,
	MailMessage message
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
message
Type: Aspose.EmailMailMessage
The MailMessage that represents an email-message.

Return Value

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