Click or drag to resize
MimeKit

IMailFolderAppendAsync(IListIAppendRequest, CancellationToken) Method

Asynchronously append multiple messages to the folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
Task<IList<UniqueId>> AppendAsync(
	IList<IAppendRequest> requests,
	CancellationToken cancellationToken = default
)

Parameters

requests  IListIAppendRequest
The append requests.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskIListUniqueId
The UID of the appended message, if available; otherwise, an empty array.
Remarks
Asynchronously appends multiple messages to the folder and returns the UniqueIds assigned to each of the messages.
See Also