Table of Contents

TTMSFNCCloudSendGrid Class

Non-visual component that sends transactional email through the SendGrid service using an API key and a configurable mail template.

API unit family: TMSFNCCloudSendGrid Inherits from: TTMSFNCCustomCloudSendGrid

Syntax

TTMSFNCCloudSendGrid = class(TTMSFNCCustomCloudSendGrid)

Remarks

Drop this component on a form, set APIKey, configure Template, then call SendMail. Publishes the API key, template and events declared by TTMSFNCCustomCloudSendGrid.

Properties

Name Description
APIKey API key used to authenticate requests to the mail service. (inherited from TTMSFNCCustomCloudSendGrid)
Template Mail template describing the message to send, including recipients, content and attachments. (inherited from TTMSFNCCustomCloudSendGrid)

Methods

Name Description
SendMail Sends the configured mail template through the service. (inherited from TTMSFNCCustomCloudSendGrid)

Events

Name Description
OnError Occurs when a send request fails, reporting the error message returned by the service. (inherited from TTMSFNCCustomCloudSendGrid)
OnSendSuccess Occurs when a message is sent successfully. (inherited from TTMSFNCCustomCloudSendGrid)