Skip to main content

ParsedMail

Parameters

NameTypeAttributesDescription
attachmentsAttachment[]An array of attachment
headersHeadersA Map object with lowercase header keys
headerLinesHeaderLinesAn array of raw header lines
htmlstring / falseThe HTML body of the message. Sets to false when there is no HTML body
textstring / undefined<optional>The plaintext body of the message
textAsHtmlstring / undefined<optional>The plaintext body of the message formatted as HTML
subjectstring / undefined<optional>The subject line
referencesstring[] / string / undefined<optional>Either an array of two or more referenced Message-ID values or a single Message-ID value
dateDate / undefined<optional>A Date object for the Date: header
toAddressObject / AddressObject[] / undefined<optional>An address object or array of address objects for the To: header
fromAddressObject / undefined<optional>An address object for the From: header
ccAddressObject / AddressObject[] / undefined<optional>An address object or array of address objects for the Cc: header
bccAddressObject / AddressObject[] / undefined<optional>An address object or array of address objects for the Bcc: header
replyToAddressObject / undefined<optional>An address object for the Reply-To: header
messageIdstring / undefined<optional>The Message-ID value string
inReplyTostring / undefined<optional>The In-Reply-To value string
priority'normal' / 'low' / 'high' / undefined<optional>Priority of the e-mail