Skip to main content
Table of Contents

TTMSFNCCloudSendGridMailTemplate.AddAttachment Method

Adds a file as an attachment, encoding its content and deriving the file name and MIME type from the file.

API unit family: TMSFNCCloudSendGrid Declaring type: TTMSFNCCloudSendGridMailTemplate

Syntax

FMX.TMSFNCCloudSendGrid.hppPascalC++
function AddAttachment(AFile: TTMSFNCUtilsFile; ADisposition: TTMSFNCCloudSendGridAttachmentDisposition = adAttachment; AID: string = ''): TTMSFNCCloudSendGridAttachment;
TTMSFNCCloudSendGridAttachment* __fastcall AddAttachment(TTMSFNCUtilsFile AFile, TTMSFNCCloudSendGridAttachmentDisposition ADisposition = (TTMSFNCCloudSendGridAttachmentDisposition)(0x1), System::UnicodeString AID = System::UnicodeString());

Parameters

Name Description
AFile File to attach.
ADisposition Whether the attachment is shown inline or as a downloadable file.
AID Content identifier required for inline attachments.

Returns

The newly added attachment.