IAsyncImapClient.AppendMessageAsync

IAsyncImapClient.AppendMessageAsync method

Uploads the mail message to the specified folder

public Task<string> AppendMessageAsync(MailMessage message, string folderName = null, 
    IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionMailMessageConnection to a server
folderNameStringFolder that will receive the mail message
messageIConnectionMail message to be upload
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also