Send Strapi transactional email through Cloudflare Email Service — a dependency-free provider for the Email feature.
released October 9, 2026
npm install @fbritoferreira/strapi-provider-email-cloudflareSend Strapi's transactional email through Cloudflare Email Service — no SMTP relay, no third-party email SaaS. Drop-in replacement for the default sendmail provider.
await strapi.plugin('email').service('email').send({
to: 'user@example.com',
subject: 'Welcome!',
html: '<h1>Welcome</h1>',
text: 'Welcome',
});@strapi/strapi ^5.0.0)npm install @fbritoferreira/strapi-provider-email-cloudflare
# yarn add / pnpm add / bun add the same package name// config/plugins.ts
export default ({ env }) => ({
email: {
config: {
provider: '@fbritoferreira/strapi-provider-email-cloudflare',
providerOptions: {
apiToken: env('CLOUDFLARE_API_TOKEN'),
accountId: env('CLOUDFLARE_ACCOUNT_ID'),
},
settings: {
defaultFrom: 'no-reply@yourdomain.com',
defaultReplyTo: 'support@yourdomain.com',
},
},
},
});Strapi now sends every email.send() call through Cloudflare. The full configuration reference lives in the documentation.
| Option | Required | Default | Description |
|---|---|---|---|
apiToken | yes | — | Cloudflare API token with Email Sending permission |
accountId | yes | — | Cloudflare account ID |
baseUrl | no | https://api.cloudflare.com/client/v4 | Override the API host (proxies, regional edges) |
timeoutMs | no | 15000 | Request timeout |
settings.defaultFrom and settings.defaultReplyTo are used when a send() call omits from / replyTo.
to, cc, bcc (string or array), from and replyTo (including Name <address> form), subject, html, text, headers, and attachments (base64/Buffer content or a file path, with cid → inline images). send() resolves with Cloudflare's delivery result: { delivered, queued, permanent_bounces, suppressed_recipients, message_id }.
Strapi options with no Cloudflare equivalent (envelope, priority, icalEvent, dsn, …) are ignored rather than silently mangled.
to + cc + bcc)Full guides — Cloudflare setup, configuration, sending, and error codes — are at strapi.fbritoferreira.com/packages/provider-email-cloudflare.
Report bugs and feature requests at github.com/fbritoferreira/strapi/issues.
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
