Resend icon

Resend

Interact with Resend API for emails, domains, API keys, broadcasts, audiences, and contacts

Actions25

Overview

This node integrates with the Resend API to send emails. It supports sending single or batch emails in either HTML or plain text format. Users can specify sender and recipient addresses, subject lines, and email content. Additional options such as CC, BCC, reply-to address, and scheduling the email for later delivery are also supported.

Common scenarios where this node is beneficial include:

  • Sending transactional emails (e.g., order confirmations, password resets).
  • Dispatching newsletters or marketing campaigns.
  • Automating personalized email notifications.
  • Scheduling emails to be sent at a specific time.

Example: A user wants to send a welcome email to a new subscriber with rich HTML content and schedule it to be sent 5 minutes later. They configure the node with the sender's email, recipient's email, subject, HTML content, and set the scheduled time accordingly.

Properties

Name Meaning
Email Format Choose the format of the email content:
- HTML: Send email with rich HTML content.
- Text: Send plain text email content.
From Sender email address. Can include a friendly name using the format "Your Name <sender@domain.com>".
To Recipient email address(es). For multiple recipients, separate addresses with commas (maximum 50).
Subject Subject line of the email.
HTML Content The HTML version of the email body. Only shown if "Email Format" is set to HTML. Supports multiline input.
Text Content The plain text version of the email body. Only shown if "Email Format" is set to Text. Supports multiline input.
Additional Options Collection of optional fields:
- CC: Carbon copy recipient email addresses (comma-separated).
- BCC: Blind carbon copy recipient email addresses (comma-separated).
- Reply To: Reply-to email address.
- Scheduled At: Schedule the email to be sent later; accepts relative times like "in 1 min" or ISO 8601 date-time strings.

Output

The node outputs JSON data representing the response from the Resend API after attempting to send the email(s). This typically includes details about the sent email such as its ID, status, timestamps, and any metadata returned by the API.

If an error occurs during execution and the node is configured to continue on failure, the output will contain an error field with the error message.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Resend API.
  • The node makes HTTP requests to https://api.resend.com/emails endpoints.
  • Proper network connectivity to the Resend API service is necessary.
  • No additional environment variables are required beyond the API key credential.

Troubleshooting

  • Invalid API Key or Authentication Errors: Ensure that the provided API key credential is valid and has the necessary permissions to send emails.
  • Malformed Email Addresses: Verify that all email addresses (From, To, CC, BCC, Reply-To) are correctly formatted. Multiple addresses should be comma-separated without extra spaces.
  • Exceeding Recipient Limits: The "To" field supports up to 50 recipients. Exceeding this may cause errors.
  • Missing Required Fields: The node requires "From", "To", and "Subject" fields to be filled. Omitting these will result in errors.
  • Scheduling Format Issues: When using the "Scheduled At" option, ensure the value is either a valid relative time string (e.g., "in 1 min") or a properly formatted ISO 8601 datetime string.
  • API Rate Limits or Service Downtime: If the API returns rate limit errors or is unreachable, retry later or check the Resend service status.

Links and References

Discussion