Table of Contents

TTMSFNCCustomCloudGoogleGmail Class

Base class that implements access to a Gmail account, providing methods to retrieve labels and messages, send mail, manage message labels and download attachments.

API unit family: TMSFNCCloudGoogleGmail Inherits from: TTMSFNCCustomCloudGoogle

Syntax

TTMSFNCCustomCloudGoogleGmail = class(TTMSFNCCustomCloudGoogle)

Properties

Name Description
Files Read-only collection of files to send with a message, as regular attachments or inline images.
Labels Read-only collection of labels available in the account.
PageToken Token that identifies the next page of results to retrieve when listing messages.

Methods

Name Description
DeleteMessage Deletes the specified message from the account.
GetAttachment Starts an asynchronous request that downloads the data of the specified attachment into its Data property.
GetAttachmentPromise Downloads the data of the specified attachment and returns a promise that resolves when the request completes.
GetLabels Starts an asynchronous request that retrieves the labels available in the account into the Labels collection.
GetLabelsPromise Retrieves the labels available in the account and returns a promise that resolves when the request completes.
GetMails Starts an asynchronous request that lists the messages of the specified labels into the Mails collection.
GetMailsPromise Lists the messages of the specified labels and returns a promise that resolves when all matching messages have been retrieved.
GetTestTokensResult Inspects a request result to determine whether the configured access tokens are valid.
ImageToBase64 Reads an image file and returns its base64-encoded data, optionally wrapped in an HTML img tag so it can be embedded inline in a message body.
RemoveMessageLabels Removes one or more labels from the specified message.
SendMailMessage Sends the specified message through the account.
SendMessage Sends the specified message through the account.
UpdateMessageLabels Adds one or more labels to the specified message.