IGmailClientAsync.AppendMessageAsync
Contents
[
Hide
]AppendMessageAsync(MailMessage, CancellationToken)
Asynchronously appends a message to the default “INBOX” label.
public Task<string> AppendMessageAsync(MailMessage msg,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| msg | MailMessage | The message to append. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the message ID.
See Also
- class MailMessage
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email
AppendMessageAsync(MailMessage, string, CancellationToken)
Asynchronously appends a message to the specified label.
public Task<string> AppendMessageAsync(MailMessage msg, string labelName,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| msg | MailMessage | The message to append. |
| labelName | String | The label name. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the message ID.
See Also
- class MailMessage
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email