Actions12
- Mailbox Actions
- Email Actions
Email → Download as EML
AI-generatedSummary
Download a specific email from a chosen mailbox via IMAP as an EML file, outputting it either as binary data or JSON text, with optional parsed email body content included.
Inputs
- Credential Type (required) — Choose which credentials to use for IMAP access: either from this node or from an existing n8n IMAP Trigger node.
- Mailbox (required) — Select the mailbox to fetch the email from, either by choosing from a list or specifying the full mailbox path.
- Email UID (required) — Provide the UID of the specific email to download.
- Output to Binary Data (required) — Decide whether to output the email as binary data (true) or JSON text (false).
- Put Output File in Field (required) — If outputting as binary, specify the name of the binary field to store the EML file in.
- Include Email Body — Optionally include parsed email body content as text, markdown, and HTML fields in the output.
- Clean HTML — When including the body, enable this to clean the HTML by removing styles and unreadable tags for better readability.
- Include Raw HTML — When including the body, choose to include the original raw HTML content, which can be very large and should be enabled only if needed.
Output shape
a list with one item containing the downloaded email either as binary data (EML file in the specified binary field) or as JSON text representing the raw email content and optionally the parsed body content fields.
Output contains exactly one email per execution. If 'Output to Binary Data' is true, the EML file is in the binary property specified by 'Put Output File in Field'. If false, the email is output as JSON text. Including email body fields and raw HTML is optional and controlled by corresponding parameters.