IGraphClientAsync.SendAsync

SendAsync(string, CancellationToken)

Asynchronously sends a draft message by its ID.

public Task SendAsync(string itemId, CancellationToken cancellationToken = default)
ParameterTypeDescription
itemIdStringThe ID of the draft message to send.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous send operation.

See Also


SendAsync(MapiMessage, CancellationToken)

Asynchronously sends a MapiMessage.

public Task SendAsync(MapiMessage message, CancellationToken cancellationToken = default)
ParameterTypeDescription
messageMapiMessageThe MapiMessage to send.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous send operation.

See Also


SendAsync(MapiMessage, bool, CancellationToken)

Asynchronously sends a MapiMessage with an option to save to Sent Items.

public Task SendAsync(MapiMessage message, bool saveToSentItems, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
messageMapiMessageThe MapiMessage to send.
saveToSentItemsBooleanWhether to save the message to Sent Items.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous send operation.

See Also


SendAsync(MailMessage, CancellationToken)

Asynchronously sends a MailMessage.

public Task SendAsync(MailMessage message, CancellationToken cancellationToken = default)
ParameterTypeDescription
messageMailMessageThe MailMessage to send.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous send operation.

See Also