IGraphClientAsync.SendAsync
Contents
[
Hide
]SendAsync(string, CancellationToken)
Asynchronously sends a draft message by its ID.
public Task SendAsync(string itemId, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| itemId | String | The ID of the draft message to send. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous send operation.
See Also
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email
SendAsync(MapiMessage, CancellationToken)
Asynchronously sends a MapiMessage.
public Task SendAsync(MapiMessage message, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| message | MapiMessage | The MapiMessage to send. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous send operation.
See Also
- class MapiMessage
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email
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)
| Parameter | Type | Description |
|---|---|---|
| message | MapiMessage | The MapiMessage to send. |
| saveToSentItems | Boolean | Whether to save the message to Sent Items. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous send operation.
See Also
- class MapiMessage
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email
SendAsync(MailMessage, CancellationToken)
Asynchronously sends a MailMessage.
public Task SendAsync(MailMessage message, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| message | MailMessage | The MailMessage to send. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous send operation.
See Also
- class MailMessage
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email