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
function AddAttachment(AFile: TTMSFNCUtilsFile; ADisposition: TTMSFNCCloudSendGridAttachmentDisposition = adAttachment; AID: string = ''): TTMSFNCCloudSendGridAttachment;
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.