Keplars

Payload CMS

Route all Payload CMS system emails through Keplars

Replace Payload's default email system with Keplars. Password resets, email verification, and any custom emails sent via payload.sendEmail() are automatically routed through Keplars' priority-queue API.

Install

bun add @keplars-hq/payload-email

Setup

Add the adapter to your Payload config

import { buildConfig } from 'payload'
import { keplarsAdapter } from '@keplars-hq/payload-email'

export default buildConfig({
  email: keplarsAdapter({
    apiKey: process.env.KEPLARS_API_KEY,
    defaultFromAddress: '[email protected]',
    defaultFromName: 'Your App',
  }),
})

Set your environment variable

KEPLARS_API_KEY=kms_your_key_here

That's it. All Payload system emails now route through Keplars.

Options

OptionRequiredDefaultDescription
apiKeyYes-Your Keplars API key (kms_...)
defaultFromAddressYes-Sender email address
defaultFromNameYes-Sender display name
defaultPriorityNohighQueue priority: instant, high, async, bulk
overrideRecipientAddressNo-Redirect all emails to this address (useful for testing)

Priority Reference

Use casePriority
OTP, magic linksinstant
Password reset, verificationhigh (default)
Welcome, notificationsasync
Newslettersbulk

Covered Emails

All Payload system emails are handled automatically:

  • Password reset
  • Email verification
  • Custom emails via payload.sendEmail()

Resources

On this page