SmtpClient.ForwardAsync

ForwardAsync(IConnection, string, string, MailMessage)

Forwards specified message to recipient

public Task ForwardAsync(IConnection connection, string sender, string recipient, 
    MailMessage message)
ParameterTypeDescription
connectionIConnectionConnection to a server
senderStringSender of the forwarded message.
recipientStringRecipient of the forwarded message.
messageMailMessageThe message for a forwarding.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(IConnection, string, MailAddressCollection, MailMessage)

Forwards specified message to recipient

public Task ForwardAsync(IConnection connection, string sender, MailAddressCollection recipients, 
    MailMessage message)
ParameterTypeDescription
connectionIConnectionConnection to a server
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageMailMessageThe message for a forwarding.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(string, string, MailMessage)

Forwards specified message to recipient

public Task ForwardAsync(string sender, string recipient, MailMessage message)
ParameterTypeDescription
senderStringSender of the forwarded message.
recipientStringRecipient of the forwarded message.
messageMailMessageThe message for a forwarding.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(string, MailAddressCollection, MailMessage)

Forwards specified message to recipient

public Task ForwardAsync(string sender, MailAddressCollection recipients, MailMessage message)
ParameterTypeDescription
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageMailMessageThe message for a forwarding.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(IConnection, string, MailAddressCollection, Stream)

Forwards specified message to recipient

public Task ForwardAsync(IConnection connection, string sender, MailAddressCollection recipients, 
    Stream messageStream)
ParameterTypeDescription
connectionIConnectionConnection to a server
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageStreamStreamThe stream that represents message in eml format.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(string, MailAddressCollection, Stream)

Forwards specified message to recipient

public Task ForwardAsync(string sender, MailAddressCollection recipients, Stream messageStream)
ParameterTypeDescription
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageStreamStreamThe stream that represents message in eml format.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(IConnection, string, string, MailMessage, CancellationToken)

Forwards specified message to recipient

public Task ForwardAsync(IConnection connection, string sender, string recipient, 
    MailMessage message, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
senderStringSender of the forwarded message.
recipientStringRecipient of the forwarded message.
messageMailMessageThe message for a forwarding.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(IConnection, string, MailAddressCollection, MailMessage, CancellationToken)

Forwards specified message to recipient

public Task ForwardAsync(IConnection connection, string sender, MailAddressCollection recipients, 
    MailMessage message, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageMailMessageThe message for a forwarding.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(string, string, MailMessage, CancellationToken)

Forwards specified message to recipient

public Task ForwardAsync(string sender, string recipient, MailMessage message, 
    CancellationToken token)
ParameterTypeDescription
senderStringSender of the forwarded message.
recipientStringRecipient of the forwarded message.
messageMailMessageThe message for a forwarding.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(string, MailAddressCollection, MailMessage, CancellationToken)

Forwards specified message to recipient

public Task ForwardAsync(string sender, MailAddressCollection recipients, MailMessage message, 
    CancellationToken token)
ParameterTypeDescription
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageMailMessageThe message for a forwarding.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(IConnection, string, MailAddressCollection, Stream, CancellationToken)

Forwards specified message to recipient

public Task ForwardAsync(IConnection connection, string sender, MailAddressCollection recipients, 
    Stream messageStream, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageStreamStreamThe stream that represents message in eml format.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ForwardAsync(string, MailAddressCollection, Stream, CancellationToken)

Forwards specified message to recipient

public Task ForwardAsync(string sender, MailAddressCollection recipients, Stream messageStream, 
    CancellationToken token)
ParameterTypeDescription
senderStringSender of the forwarded message.
recipientsMailAddressCollectionRecipients of the forwarded message.
messageStreamStreamThe stream that represents message in eml format.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also