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 multiple emails in a batch operation. It allows users to specify an array of individual email messages, each with its own sender, recipient(s), subject, and content. The node supports sending emails either as HTML or plain text format.

Common scenarios where this node is beneficial include:

  • Sending personalized bulk emails such as newsletters, announcements, or notifications.
  • Automating email campaigns where each recipient receives a customized message.
  • Efficiently dispatching multiple transactional emails in one API call to reduce overhead.

For example, a marketing team can use this node to send a batch of promotional emails to different customers, each with tailored content and subject lines.

Properties

Name Meaning
Email Format Choose the format for your email content. Options: HTML (rich formatting) or Text (plain).
Emails An array of emails to send (maximum 100). Each email includes:
- From Sender email address.
- To Recipient email address(es), comma-separated for multiple recipients.
- Subject Subject line of the email.
- HTML Content HTML version of the email content (shown if Email Format is HTML).
- Text Content Plain text version of the email content (shown if Email Format is Text).

Output

The node outputs an array of JSON objects corresponding to the response from the Resend API after attempting to send the batch of emails. Each output item contains the API's response data for the batch request, which typically includes status information about the sent emails.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Resend email service.
  • The node makes HTTP requests to the Resend API endpoints (https://api.resend.com/emails/batch).
  • Proper configuration of the API key credential within n8n is necessary for successful operation.

Troubleshooting

  • Common issues:

    • Exceeding the maximum number of emails per batch (max 100) will likely cause errors.
    • Invalid email addresses or improperly formatted "To" fields may result in API rejections.
    • Missing required fields such as "From", "To", or "Subject" in any email object will cause failures.
    • Network or authentication errors if the API key is invalid or missing.
  • Error messages:

    • Errors returned from the Resend API will be included in the node output if "Continue On Fail" is enabled.
    • Typical error messages might indicate invalid parameters, unauthorized access, or rate limiting.
  • Resolution tips:

    • Verify all required fields are correctly filled for each email.
    • Ensure the API key credential is valid and has appropriate permissions.
    • Check that the batch size does not exceed 100 emails.
    • Validate email addresses for correct syntax.

Links and References

Discussion