Click or drag to resize
MimeKit

IMailFolderAppendAsync(FormatOptions, IAppendRequest, CancellationToken) Method

Asynchronously append a message to the folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task<UniqueId?> AppendAsync(
	FormatOptions options,
	IAppendRequest request,
	CancellationToken cancellationToken = default
)

Parameters

options  FormatOptions
The formatting options.
request  IAppendRequest
The append request.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskNullableUniqueId
The UID of the appended message, if available; otherwise, null.
Remarks
Asynchronously appends a message to the folder and returns the UniqueId assigned to the message.
See Also