Resend REST Email Adapter
This adapter allows you to send emails using the Resend REST API.
Installation
pnpm add @payloadcms/email-resend
Usage
- Sign up for a Resend account
- Set up a domain
- Create an API key
- Set API key as RESEND_API_KEY environment variable
- Configure your Payload config
import { resendAdapter } from '@payloadcms/email-resend'
export default buildConfig({
email: resendAdapter({
defaultFromAddress: 'dev@payloadcms.com',
defaultFromName: 'Payload CMS',
apiKey: process.env.RESEND_API_KEY || '',
}),
})