An enhanced version of the n8n EmailSend node that includes email threading support through inReplyTo and references headers.
- Email Threading Support: Properly handle email conversations with
inReplyToandreferencesheaders - SMTP Protocol: Full SMTP support with authentication
- Attachments: Support for email attachments
- Multiple Recipients: CC and BCC support
- Priority Settings: Set email priority (low, normal, high)
- HTML and Text: Support for both HTML and plain text emails
- Field Name:
inReplyTo - Type: String
- Description: Message ID of the email this is a reply to
- Example:
<[email protected]> - Usage: Used by email clients to thread conversations properly
- Field Name:
references - Type: String
- Description: Space or comma-separated list of message IDs in the conversation thread
- Example:
<[email protected]> <[email protected]> - Usage: Maintains the complete conversation thread for email clients
These fields follow RFC 5322 standards for email threading:
- In-Reply-To: Contains the message ID of the email being replied to
- References: Contains all message IDs in the conversation thread, allowing email clients to properly group related emails
-
Build the project:
npm run build
-
Copy the built files to your n8n custom nodes directory
-
Restart your n8n instance
- Add the "Send Email" node to your workflow
- Configure SMTP credentials
- Fill in the basic email fields (from, to, subject, text/html)
- In "Additional Fields":
- Add
inReplyTowith the message ID you're replying to - Add
referenceswith the conversation thread message IDs
- Add
- Execute the workflow
{
"inReplyTo": "<[email protected]>",
"references": "<[email protected]> <[email protected]>"
}This ensures proper email threading in email clients like Gmail, Outlook, and Thunderbird.