Skip to main content

Attachment

Attachment

Parameters

Interface Attachment extends interface AttachmentCommon

NameTypeDescription
contentBufferA Buffer that contains the attachment contents
relatedbooleanIf true then this attachment should not be offered for download

AttachmentCommon

Parameters

NameTypeAttributesDescription
type'attachment'Message type
contentanyAttachment contents
contentTypestringMIME type of the message
contentDispositionstringContent disposition type for the attachment
filenamestring / undefined<optional>File name of the attachment
headersHeadersA Map value that holds MIME headers for the attachment node
headerLinesHeaderLinesAn array of raw header lines for the attachment node
checksumstringA MD5 hash of the message content
sizenumberMessage size in bytes
contentIdstring / undefined<optional>The header value from Content-ID
cidstring / undefined<optional>contentId without < and >
relatedboolean / undefined<optional>If true then this attachment should not be offered for download