ISESV2Template
Interface in AWS.SESV2
Interface for Template.
Properties
Attachments
property Attachments: TList<ISESV2Attachment>
Type: ISESV2Attachment
A list of objects that represent file attachments to include with the templated email.
Each attachment must be in a supported file format and properly encoded. Attachments are included in addition to any content generated from the email template and may affect deliverability depending on size and type.
Headers
property Headers: TList<ISESV2MessageHeader>
Type: ISESV2MessageHeader
An array of objects that represent custom email headers to include with the templated message.
Custom headers allow you to add metadata or tracking information to templated emails. Header names must comply with RFC 5322 standards and cannot override system-generated headers like Message-ID or Date.
TemplateArn
property TemplateArn: TARN
The Amazon Resource Name (ARN) of the template to use for sending the message.
Use this property instead of TemplateName when referencing templates in different AWS accounts or regions. The ARN must point to a valid email template that your account has permission to access.
TemplateContent
property TemplateContent: ISESV2EmailTemplateContent
Type: ISESV2EmailTemplateContent
An object that contains the subject and body content to use instead of the stored template.
When specified, this content overrides the subject and body defined in the stored template while still allowing template data substitution. Use this for dynamic template content that varies per message.
TemplateData
property TemplateData: string
A JSON string containing the template data for variable substitution.
Contains key-value pairs that replace template variables in the email content. The JSON structure must match the placeholders defined in the template. For example: {"name":"John","company":"Acme Corp"}
TemplateName
property TemplateName: string
The name of the email template to use for sending the message.
The template must already exist in your AWS account before it can be referenced. Template names are case-sensitive and must match exactly as they appear in Amazon SES.
Methods
AddAttachment
function AddAttachment(const AAttachment: ISESV2Attachment): NativeInt;
Add an attachment to Attachments.
Parameters
| Name | Description |
|---|---|
AAttachment | Specify an attachment to add to Attachments. |
Returns
Returns the index of the attachment added to Attachments.
AddHeader
function AddHeader(const AHeader: ISESV2MessageHeader): NativeInt; overload;
Add a header to Headers.
Parameters
| Name | Description |
|---|---|
AHeader | Specify a header to add to Headers. |
Returns
Returns the index of the header added to Headers.
function AddHeader(const AName, AValue: string): NativeInt; overload;
Add a header to Headers.
Parameters
| Name | Description |
|---|---|
AName | Specify the header name to add to Headers. |
AValue | Specify the header value to add to Headers. |
Returns
Returns the index of the header added to Headers.