Skip to main content

ISESV2Attachment

Interface in AWS.SESV2

Interface for SESV2 Attachment.

Properties

ContentDescription

property ContentDescription: string

A human-readable description of the attachment content.

This optional field provides additional context about the attachment for accessibility and email client display purposes. Some email clients may display this description alongside the filename.

ContentDisposition

property ContentDisposition: string

Specifies how the attachment should be presented to the recipient.

Supported disposition values:

  • ATTACHMENT – File appears as a downloadable attachment
  • INLINE – Content is displayed within the email body

ContentId

property ContentId: string

A unique identifier for the attachment within the email message.

This optional field can be used to reference the attachment from within the email body, particularly useful for inline images in HTML emails using cid: references.

ContentTransferEncoding

property ContentTransferEncoding: string

The encoding method used for the attachment data.

Supported transfer encoding values:

  • BASE64 – Binary data encoded as base64 text
  • QUOTED_PRINTABLE – Text with special characters encoded
  • SEVEN_BIT – Plain ASCII text without encoding Most binary attachments use BASE64 encoding for reliable transmission across email systems.

ContentType

property ContentType: string

The MIME content type of the attachment.

Specifies the file format using standard MIME types such as application/pdf, image/jpeg, or text/plain. The content type must accurately represent the file format to ensure proper handling by email clients.

FileName

property FileName: string

The filename of the attachment as it will appear to email recipients.

This name is displayed in the recipient's email client and should include the appropriate file extension. The filename should not contain path separators or special characters that might cause issues across email clients.

RawContent

property RawContent: TBytes

The binary content of the attachment file.

Contains the actual file data as a byte array. The attachment content is automatically encoded for email transmission and must be in a file format supported by Amazon SES.