An email adapter that connects Payload to the useSend REST API (formerly Unsend) for transactional and marketing email. It is set as the email option in the Payload config with an API key, base URL and default sender details. It requires a useSend account or self-hosted instance and Payload 3.90 or later.
PayloadCMS adapter for sending emails via the useSend API (previously Unsend).
Installation
npm i @rubixstudios/payload-usesend8
Stars
0
Forks
0
Open Issues
3 days ago
Last Updated
511
Weekly Downloads
v1.6.1
npm Version
36.6 KB
Unpacked Size
0
Dependencies
Trends appear after 7 days of data. Daily snapshots have not started yet.
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1053175524-root)<a href="https://payloaddirectory.dev/plugins/1053175524-root"><img src="https://payloaddirectory.dev/badge/1053175524-root.svg" alt="Payload Directory"></a>README
useSend is an API-first email delivery platform built for transactional and marketing email workflows. It adopts an architectural model comparable to Resend while remaining fully open source and self-hostable. This combination enables teams to standardise email delivery without surrendering control over infrastructure, deployment topology, or data locality.
The platform exposes a REST-based interface for email delivery and supports provider-native capabilities such as templates, dynamic variables, and scheduled sends. By abstracting the underlying delivery infrastructure, useSend simplifies application integration while allowing organisations to retain operational and regulatory control.
This adapter integrates PayloadCMS with the useSend REST API for transactional and marketing emails.
See the full documentation for comprehensive guides, features, comparisons, and configuration examples.
pnpm add @rubixstudios/payload-usesend
// payload.config.js
import { sendAdapter } from '@rubixstudios/payload-usesend'
export default buildConfig({
email: sendAdapter({
apiKey: process.env.USESEND_API_KEY!,
defaultFromAddress: '[email protected]',
defaultFromName: 'Rubix Studios',
useSendUrl: process.env.USESEND_URL!,
// Optional
// idempotencyKey: () => crypto.randomUUID(),
// scheduledAt: '2025-08-01T10:00:00Z',
// templateId: 'template-uuid',
// variables: { firstName: 'Vincent' },
}),
})
Custom email headers are set on the email message itself and are forwarded to useSend as the headers object:
await payload.sendEmail({
to: '[email protected]',
from: 'Rubix Studios <[email protected]>',
subject: 'Welcome',
html: '<p>Hello</p>',
headers: {
'List-Unsubscribe': '<https://example.com/unsubscribe>',
'List-Unsubscribe-Post': 'List-Unsubscribe=One-Click',
},
})
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey | string | Yes | - | useSend API key |
useSendUrl | string | Yes | - | useSend base URL |
defaultFromAddress | string | Yes | - | Default sender email |
defaultFromName | string | Yes | - | Default sender name |
idempotencyKey | string | function | No | Auto | Unique key reused across retries |
scheduledAt | string | No | - | ISO 8601 scheduled delivery date |
templateId | string | No | - | Email template ID |
variables | object | No | - | Email template variables |
This project is licensed under the MIT License - see the LICENSE file for details.
For support or inquiries:
Rubix Studios
https://rubixstudios.com.au
Topics
Tags
payload cloudflare email adapter
Send Payload transactional email through the Cloudflare Email Service Workers binding
762.7k/wk3v3
payload order emails
Transactional emails on Payload order creation and status changes with overridable templates
570/wk1v3
payload plugin
Email advocacy and contact management with broadcasts, letter campaigns and delivery tracking inside Payload
560/wk1v3
eusend payload
Email adapter that sends Payload emails through the eusend EU-hosted transactional email REST API
520/wk1v3 v4
payload plugin easyemail
Visual EasyEmail Pro template editor and starter library inside the Payload admin
374/wk2v3
payload email ahasend
Email adapter that sends Payload CMS emails through the AhaSend API, supporting v1 and v2
370/wk1v3