This adapter allows PayloadCMS to send emails using the Unsend REST API.
pnpm add @rubixstudios/payload-unsend
- Sign up for a Unsend account
- Set up a domain
- Create an API key
- Set API key as UNSEND_API_KEY environment variable
- Set your Unsend base url as UNSEND_URL environment variable
- Configure your Payload config
// payload.config.js
import { unsendAdapter } from '@rubixstudios/payload-unsend'
export default buildConfig({
email: unsendAdapter({
defaultFromAddress: 'hello@rubixstudios.com.au',
defaultFromName: 'Rubix Studios',
apiKey: process.env.UNSEND_API_KEY || '',
unsendurl: process.env.UNSEND_URL || 'https://rubixstudios.com.au'
}),
})