Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

jonathanferreyra/n8n-nodes-resend

Repository files navigation

n8n-nodes-resend

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.

Installation

Recommended: n8n Community Nodes

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-resend
  4. Agree to the security prompt
  5. Install

Manual Installation

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 build

Then restart n8n.

Authentication

This node requires a Resend API key. To obtain one:

  1. Create an account at Resend
  2. Navigate to the API Keys section
  3. Create a new API key
  4. Copy the key and use it in n8n credentials

Node Operations

Email Resource Operations

The Resend node provides the following operations for managing emails:

1. Cancel

Cancels a scheduled email that hasn't been sent yet.

Parameters:

  • Email ID: The unique identifier of the scheduled email to cancel.

2. Get

Retrieves detailed information about a specific email.

Parameters:

  • Email ID: The unique identifier of the email to retrieve.

3. List

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.

4. Send

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.

5. Send Batch

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.

6. Update

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.

Example Usage

Basic Email Sending

This workflow sends a simple email:

  1. Add a Manual Trigger node
  2. Add the Resend node
  3. Configure the Resend node:

Scheduled Email with Tracking

This example schedules an email for future delivery with tracking tags:

  1. Add a Manual Trigger node
  2. Add the Resend node
  3. 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"

Batch Email Sending

Send different emails to multiple recipients in one operation:

  1. Add a Manual Trigger node
  2. 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>"
          }
        ]
      }
    };
  3. Add the Resend node
  4. Configure the Resend node:
    • Operation: Send Batch
    • Emails JSON: {{ $json.emails }}

Resources

License

MIT

About

N8N community node that integrates with Resend, a modern email API for developers.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published