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
Syntaxpublic Task ForwardAsync(
IConnection connection,
string sender,
MailAddressCollection recipients,
MailMessage message,
CancellationToken token
)
Public Function ForwardAsync (
connection As IConnection,
sender As String,
recipients As MailAddressCollection,
message As MailMessage,
token As CancellationToken
) As Task
public:
Task^ ForwardAsync(
IConnection^ connection,
String^ sender,
MailAddressCollection^ recipients,
MailMessage^ message,
CancellationToken token
)
member ForwardAsync :
connection : IConnection *
sender : string *
recipients : MailAddressCollection *
message : MailMessage *
token : CancellationToken -> Task
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:
TaskTask object, with delegate for this operation
See Also