Email Parser icon

Email Parser

Parse raw email messages with mailparser

Email Parser

AI-generated

Summary

Parse a raw email message from the specified source (binary or JSON property) to extract structured email details and attachments.

Inputs

  • Source (required) — Choose whether to read the raw email message from a binary property or a JSON property.
  • Binary Property — Name of the binary property containing the raw email when Source is 'Binary' (default 'data').
  • JSON Property — Name of the JSON property containing the raw email when Source is 'JSON' (default 'rawEmail').
  • JSON Encoding — Encoding of the JSON raw email property: Auto Detect, Base64, or UTF-8 (default 'auto').
  • Output Property (required) — Name of the JSON property that will receive the parsed email data (default 'parsedEmail').
  • Options — Options including whether to expose attachments as binary, prefix for binary attachment property names, whether to include attachment content as base64 in JSON, and whether to include normalized headers in the output.

Output shape

A list of items each containing a JSON property (named as specified by Output Property) with parsed email fields plus optional binary properties for attachments.

Parsed email JSON includes subject, messageId, from/to/cc/bcc/replyTo/sender addresses as arrays of objects with name and address, date (ISO string), text, html, normalized headers if enabled, and metadata about attachments. Attachments can be optionally exposed as n8n binary data properties with configurable prefix and optionally have their content base64 encoded inside the JSON output. Errors per item produce JSON with an 'error' message if 'Continue On Fail' is enabled.

Links

Discussion