ImapClient.AppendMessagesAsync

AppendMessagesAsync(IConnection, IEnumerable<MailMessage>)

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

public Task<AppendMessagesResult> AppendMessagesAsync(IConnection connection, 
    IEnumerable<MailMessage> messages)
ParameterTypeDescription
connectionIConnectionConnection to a server
messagesIEnumerable`1Enumeration of email messages to be upload

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(IConnection, string, IEnumerable<MailMessage>)

Uploads the mail messages to the current folder

public Task<AppendMessagesResult> AppendMessagesAsync(IConnection connection, string folderName, 
    IEnumerable<MailMessage> messages)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder that will receive the mail message
messagesIEnumerable`1Enumeration of email messages to be upload

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(IEnumerable<MailMessage>)

Uploads the mail message to the current folder If current folder hasn’t been specified default folder is used.

public Task<AppendMessagesResult> AppendMessagesAsync(IEnumerable<MailMessage> messages)
ParameterTypeDescription
messagesIEnumerable`1Enumeration of email messages to be upload

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(string, IEnumerable<MailMessage>)

Uploads the mail messages to the current folder

public Task<AppendMessagesResult> AppendMessagesAsync(string folderName, 
    IEnumerable<MailMessage> messages)
ParameterTypeDescription
folderNameStringFolder that will receive the mail message
messagesIEnumerable`1Enumeration of email messages to be upload

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(IConnection, IEnumerable<MailMessage>, CancellationToken)

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

public Task<AppendMessagesResult> AppendMessagesAsync(IConnection connection, 
    IEnumerable<MailMessage> messages, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
messagesIEnumerable`1Enumeration of email messages to be upload
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(IConnection, string, IEnumerable<MailMessage>, CancellationToken)

Uploads the mail messages to the current folder

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

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(IEnumerable<MailMessage>, CancellationToken)

Uploads the mail message to the current folder If current folder hasn’t been specified default folder is used.

public Task<AppendMessagesResult> AppendMessagesAsync(IEnumerable<MailMessage> messages, 
    CancellationToken token)
ParameterTypeDescription
messagesIEnumerable`1Enumeration of email messages to be upload
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


AppendMessagesAsync(string, IEnumerable<MailMessage>, CancellationToken)

Uploads the mail messages to the current folder

public Task<AppendMessagesResult> AppendMessagesAsync(string folderName, 
    IEnumerable<MailMessage> messages, CancellationToken token)
ParameterTypeDescription
folderNameStringFolder that will receive the mail message
messagesIEnumerable`1Enumeration of email messages to be upload
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also