SmtpClientSendAsync Method (String, String, String, String, CancellationToken)

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(
	string from,
	string recipients,
	string subject,
	string body,
	CancellationToken token
)

Parameters

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.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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