IGmailClient.AppendMessage

AppendMessage(MailMessage)

Directly appends a message into INBOX similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

public string AppendMessage(MailMessage msg)
ParameterTypeDescription
msgMailMessageMailMerssage that will be appended.

Return Value

The Id of appended message.

See Also


AppendMessage(MailMessage, string)

Directly appends a message into only this user’s mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

public string AppendMessage(MailMessage msg, string labelName)
ParameterTypeDescription
msgMailMessageMailMerssage that will be appended.
labelNameStringThe name of Label that will be appplied to appended message.If name null or empty then label INBOX will be applied.

Return Value

The Id of appended message.

See Also