ImapClientAppendMessagesAsync Method (IConnection, IEnumerableMailMessage, CancellationToken)

Uploads the mail messages to the current folder If current folder hasn't been specified default folder is used.

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<AppendMessagesResult> AppendMessagesAsync(
	IConnection connection,
	IEnumerable<MailMessage> messages,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
messages
Type: System.Collections.GenericIEnumerableMailMessage
Enumeration of email messages to be upload
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: TaskAppendMessagesResult
Task object, with delegate for this operation
See Also