Resend Email Provider for Strapi logo

Resend Email Provider for Strapi

By 3X Web

Send transactional email from Strapi 5 using Resend, with HTML, text, and hosted templates.

Latest version

v1.2.2

released November 25, 2026

npm install @3xweb/strapi-provider-email-resend

Resend Email Provider for Strapi v5

npm version License: MIT

A lightweight email provider for Strapi v5 powered by the official Resend SDK.

Features

  • Compatible with Strapi v5
  • Uses the official Resend SDK
  • Supports HTML and plain text emails
  • Supports Resend Templates
  • Supports CC, BCC and Reply-To
  • Passes through additional Resend options
  • No build step required
  • Node.js 20+

Requirements

  • Node.js 20 or later, subject to the Node.js range required by your Strapi version
  • Strapi v5
  • A Resend account and API key

Installation

npm install @3xweb/strapi-provider-email-resend

Configuration

Create or update config/plugins.ts:

export default ({ env }) => ({
  email: {
    config: {
      provider: "@3xweb/strapi-provider-email-resend",

      providerOptions: {
        apiKey: env("RESEND_API_KEY"),
      },

      settings: {
        defaultFrom: env("EMAIL_FROM"),
        defaultReplyTo: env("EMAIL_REPLY_TO"),
      },
    },
  },
});

Environment Variables

RESEND_API_KEY=re_xxxxxxxxxxxxxxxxx

EMAIL_FROM=My App <noreply@example.com>
EMAIL_REPLY_TO=support@example.com

Usage

HTML email

await strapi.plugins.email.services.email.send({
  to: "user@example.com",
  subject: "Welcome",
  html: "<h1>Hello!</h1><p>Your account has been created.</p>",
});

Plain text email

await strapi.plugins.email.services.email.send({
  to: "user@example.com",
  subject: "Welcome",
  text: "Hello! Your account has been created.",
});

Resend Template

await strapi.plugins.email.services.email.send({
  to: "user@example.com",
  subject: "Welcome",
  template: {
    id: "welcome-email",
    variables: {
      name: "Douglas",
      loginUrl: "https://example.com/login",
    },
  },
});

When using template, the provider sends only the template payload to Resend and does not include html or text.

Supported Fields

FieldDescription
fromEmail sender
toRecipient or recipients
ccCarbon copy recipients
bccBlind carbon copy recipients
replyToReply-to address
subjectEmail subject
textPlain text content
htmlHTML content
templateResend Template configuration

Any additional properties provided by Strapi are forwarded directly to the Resend SDK.

Default Behavior

If from is not provided, the provider uses settings.defaultFrom.

If replyTo is not provided, the provider uses settings.defaultReplyTo.

A single Resend client instance is created during Strapi startup and reused for all email requests.

On success, the provider returns the SDK response, including data.id. If the Resend SDK returns an API error, the provider rejects with a generic message. The error does not include the SDK response, recipients, email content or credentials. Configure an error handler at the call site as needed.

Set EMAIL_FROM to a sender on a domain verified in Resend. Store RESEND_API_KEY in your private environment configuration.

Development

Run npm ci and npm test. The suite mocks the SDK HTTP transport, so it does not require credentials or send email.

Notes

This provider supports both standard Strapi email templates and Resend Templates.

For Strapi built-in emails, such as password reset and email confirmation, Strapi usually generates the html or text content internally and sends it through the configured email provider.

Resend Templates are useful for custom application emails where you want the template content to live inside Resend.

License

MIT

Notes

Originally based on the strapi-provider-email-resend project by Jerod Fritz, updated for Strapi v5 and the latest Resend SDK.

Submit your content

Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.

Submit
Submit your content