@rubixstudios/payload-unsend
TypeScript icon, indicating that this package has built-in type declarations

1.10.11 • Public • Published

Unsend REST Email Adapter

This adapter allows PayloadCMS to send emails using the Unsend REST API.

npm version

Installation

pnpm add @rubixstudios/payload-unsend

Usage

  • 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'
  }),
})

Package Sidebar

Install

npm i @rubixstudios/payload-unsend

Weekly Downloads

74

Version

1.10.11

License

MIT

Unpacked Size

20.5 kB

Total Files

9

Last publish

Collaborators

  • rubixvi