
By 3X Web
Send transactional email from Strapi 5 using Resend, with HTML, text, and hosted templates.
released November 25, 2026
npm install @3xweb/strapi-provider-email-resendA lightweight email provider for Strapi v5 powered by the official Resend SDK.
npm install @3xweb/strapi-provider-email-resendCreate 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"),
},
},
},
});RESEND_API_KEY=re_xxxxxxxxxxxxxxxxx
EMAIL_FROM=My App <noreply@example.com>
EMAIL_REPLY_TO=support@example.comawait strapi.plugins.email.services.email.send({
to: "user@example.com",
subject: "Welcome",
html: "<h1>Hello!</h1><p>Your account has been created.</p>",
});await strapi.plugins.email.services.email.send({
to: "user@example.com",
subject: "Welcome",
text: "Hello! Your account has been created.",
});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.
| Field | Description |
|---|---|
| from | Email sender |
| to | Recipient or recipients |
| cc | Carbon copy recipients |
| bcc | Blind carbon copy recipients |
| replyTo | Reply-to address |
| subject | Email subject |
| text | Plain text content |
| html | HTML content |
| template | Resend Template configuration |
Any additional properties provided by Strapi are forwarded directly to the Resend SDK.
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.
Run npm ci and npm test. The suite mocks the SDK HTTP transport, so it does not require credentials or send email.
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.
MIT
Originally based on the strapi-provider-email-resend project by Jerod Fritz, updated for Strapi v5 and the latest Resend SDK.
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
