SmtpClientSendAsync Method (IConnection, String, String, String, String)

Creates and sends the specified message.

Namespace:  Aspose.Email.Clients.Smtp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task SendAsync(
	IConnection connection,
	string from,
	string recipients,
	string subject,
	string body
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
from
Type: SystemString
A String that contains the address of message sender.
recipients
Type: SystemString
A String that contains the address of recipients.
subject
Type: SystemString
A subject of message.
body
Type: SystemString
A body of message.

Return Value

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