Representation of an email attachment used in the Sudo Platform Email SDK.

interface EmailAttachment {
    contentId?: string;
    contentTransferEncoding?: ContentTransferEncoding;
    data: string;
    filename: string;
    inlineAttachment: boolean;
    mimeType: string;
}

Properties

contentId?: string

Identifier used to identify an attachment within an email body.

contentTransferEncoding?: ContentTransferEncoding

The encoding type of the content

data: string

The email attachment data as a base64 encoded string.

filename: string
inlineAttachment: boolean

Flag indicating whether this is an inline attachment or not.

mimeType: string

The type of content that is attached.