IAsyncImapClient.AppendMessagesAsync

IAsyncImapClient.AppendMessagesAsync method

Uploads the mail messages to the current folder

public Task<AppendMessagesResult> AppendMessagesAsync(IEnumerable<MailMessage> messages, 
    string folderName = null, IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionIEnumerable`1Connection to a server
folderNameStringFolder that will receive the mail message
messagesIConnectionEnumeration of email messages to be upload
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also