ISESV2Message
Interface in AWS.SESV2
Interface for Message.
Properties
Attachments
property Attachments: TList<ISESV2Attachment>
Type: ISESV2Attachment
A list of objects that represent file attachments to include with the email.
Each attachment must be in a supported file format and properly encoded. Attachments increase the overall message size and may affect deliverability depending on the recipient's email provider policies.
Body
property Body: ISESV2Body
Type: ISESV2Body
An object that represents the body of the email message.
The message body can include both HTML and plain text versions to ensure compatibility across different email clients and improve deliverability.
Headers
property Headers: TList<ISESV2MessageHeader>
Type: ISESV2MessageHeader
A list of objects that represent custom email headers to include with the message.
Custom headers allow you to add metadata or tracking information to emails. Header names must comply with RFC 5322 standards and cannot override system-generated headers like Message-ID or Date.
Subject
property Subject: ISESV2Content
Type: ISESV2Content
An object that represents the subject line of the email.
The subject line appears in the recipient's inbox and is a key factor in email engagement and deliverability. Subject lines containing non-ASCII characters must be properly encoded using RFC 2047 standards.
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.