SmtpClientForwardAsync Method (IConnection, String, MailAddressCollection, MailMessage, CancellationToken)

Forwards specified message to recipient

Namespace:  Aspose.Email.Clients.Smtp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task ForwardAsync(
	IConnection connection,
	string sender,
	MailAddressCollection recipients,
	MailMessage message,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
sender
Type: SystemString
Sender of the forwarded message.
recipients
Type: Aspose.EmailMailAddressCollection
Recipients of the forwarded message.
message
Type: Aspose.EmailMailMessage
The message for a forwarding.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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