This is an n8n community node for integrating with Resend, a modern email API for developers. This node provides comprehensive access to Resend's email functionality directly within your n8n workflows.
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-resend - Agree to the security prompt
- Install
For manual installation, clone this repo to your custom nodes directory:
# Create a directory for custom nodes (if you haven't already)
mkdir -p ~/.n8n/custom
# Clone the repo
git clone https://github.com/yourusername/n8n-nodes-resend.git ~/.n8n/custom/n8n-nodes-resend
# Install dependencies and build
cd ~/.n8n/custom/n8n-nodes-resend
npm install
npm run buildThen restart n8n.
This node requires a Resend API key. To obtain one:
- Create an account at Resend
- Navigate to the API Keys section
- Create a new API key
- Copy the key and use it in n8n credentials
The Resend node provides the following operations for managing emails:
Cancels a scheduled email that hasn't been sent yet.
Parameters:
- Email ID: The unique identifier of the scheduled email to cancel.
Retrieves detailed information about a specific email.
Parameters:
- Email ID: The unique identifier of the email to retrieve.
Lists emails with optional filtering.
Parameters:
- Return All: Toggle to return all results or limit them.
- Limit: Maximum number of results to return (if not returning all).
- Filters:
- From: Filter emails by sender address.
- To: Filter emails by recipient address.
Sends a single email.
Required Parameters:
- From: Sender's email address.
- To: Recipient's email address(es), comma-separated.
- Subject: Email subject line.
Optional Parameters:
- HTML Content: HTML body of the email.
- Text Content: Plain text body of the email.
- CC: Carbon copy recipient(s), comma-separated.
- BCC: Blind carbon copy recipient(s), comma-separated.
- Reply To: Address for replies.
Additional Fields:
- Attachments: Binary attachments to include in the email.
- Scheduled For: Date and time to schedule the email for future delivery.
- Tags: Key-value pairs for tracking and categorizing emails.
Sends multiple emails in a single API call.
Parameters:
- Emails JSON: A JSON array containing multiple email objects. Each object should include from, to, subject, and content fields.
- Batch Options:
- Scheduled For: Schedule all emails in the batch to be sent at a specified time.
Updates a scheduled email that hasn't been sent yet.
Required Parameters:
- Email ID: The unique identifier of the scheduled email to update.
Update Fields (all optional):
- From: Updated sender's email address.
- To: Updated recipient's email address(es).
- Subject: Updated email subject line.
- HTML Content: Updated HTML body.
- Text Content: Updated plain text body.
- CC: Updated carbon copy recipient(s).
- BCC: Updated blind carbon copy recipient(s).
- Reply To: Updated address for replies.
- Scheduled For: Updated date and time for delivery.
This workflow sends a simple email:
- Add a Manual Trigger node
- Add the Resend node
- Configure the Resend node:
- Operation: Send
- From: [email protected]
- To: [email protected]
- Subject: Hello from n8n
- HTML Content:
<h1>Hello!</h1><p>This is a test email from n8n using Resend.</p>
This example schedules an email for future delivery with tracking tags:
- Add a Manual Trigger node
- Add the Resend node
- Configure the Resend node:
- Operation: Send
- From: [email protected]
- To: [email protected]
- Subject: Scheduled Meeting Reminder
- HTML Content:
<p>Don't forget about our meeting tomorrow!</p> - Additional Fields:
- Scheduled For: [Select future date/time]
- Tags: Add tags like "campaign:reminder" and "user_type:customer"
Send different emails to multiple recipients in one operation:
- Add a Manual Trigger node
- Add a Code node with this JavaScript snippet:
return { json: { emails: [ { from: "[email protected]", to: "[email protected]", subject: "First user email", html: "<p>Hello User 1!</p>" }, { from: "[email protected]", to: "[email protected]", subject: "Second user email", html: "<p>Hello User 2!</p>" } ] } };
- Add the Resend node
- Configure the Resend node:
- Operation: Send Batch
- Emails JSON:
{{ $json.emails }}