Moves the emails sent by the Payload form builder plugin into Payload Jobs. It hooks into the form builder's beforeEmail option and registers a job task, so nothing in node_modules is patched. Queue mode needs a job runner and a database migration; the default sync mode leaves the form builder unchanged. Built for Payload 4 beta.
Moves Payload CMS 4 form builder emails into Payload Jobs so the visitor does not wait for SMTP and failures are retried.
Installation
npm i @serge-pro-dev/payload-plugin-email-queue0
Stars
0
Forks
0
Open Issues
Yesterday
Last Updated
466
Weekly Downloads
v0.1.0-beta.1
npm Version
16.6 KB
Unpacked Size
1
Dependencies
00 since Nov 29
| Date | Stars |
|---|---|
| Dec 6, 2026 | 0 |
| Dec 5, 2026 | 0 |
| Dec 4, 2026 | 0 |
| Dec 3, 2026 | 0 |
| Dec 2, 2026 | 0 |
| Dec 1, 2026 | 0 |
| Nov 30, 2026 | 0 |
| Nov 29, 2026 | 0 |
Shared by 6 plugins in serge-pro-dev/payload-plugins.
Trends appear after 7 days of data. Collecting since Dec 4 — 3 daily snapshots so far.
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/1479182369-email-queue)<a href="https://payloaddirectory.dev/plugins/1479182369-email-queue"><img src="https://payloaddirectory.dev/badge/1479182369-email-queue.svg" alt="Payload Directory"></a>README
Moves the emails of the Payload CMS 4 form builder plugin into Payload Jobs.
The form builder sends its emails inside the request that creates the submission: the visitor
waits for SMTP and a failure is only logged. With this plugin each email becomes a job, the
visitor gets an immediate answer and failed emails are retried. Nothing in node_modules is
patched, the plugin uses the form builder's own beforeEmail option.
pnpm add @serge-pro-dev/payload-plugin-email-queue
import { formBuilderPlugin } from '@payloadcms/plugin-form-builder'
import { resolveDeliveryMode } from '@serge-pro-dev/payload-plugins-shared/delivery'
import {
createQueueBeforeEmail,
emailQueuePlugin,
} from '@serge-pro-dev/payload-plugin-email-queue'
// FORM_DELIVERY=queue turns it on, the default ("sync") changes nothing.
const delivery = resolveDeliveryMode(process.env.FORM_DELIVERY)
plugins: [
formBuilderPlugin({ beforeEmail: createQueueBeforeEmail({ delivery }) }),
emailQueuePlugin({ delivery }),
]
resolveDeliveryMode comes from @serge-pro-dev/payload-plugins-shared, which is installed
automatically with the plugin.
sync (default): the plugin does nothing, the form builder behaves as usual.queue: every email is queued as one job (sendFormEmail), so a retry never repeats an email
that was already sent. Emails that could not be queued (for example the migration was not
applied) are sent directly and an error is logged.Queue mode needs a job runner and a database migration, see
delivery.
Email jobs contain the email text; completed jobs are deleted by Payload, failed ones stay in
payload-jobs.
| Option | Purpose |
|---|---|
delivery | 'sync' (default) or 'queue' |
queue | Payload Jobs queue name, default default |
MIT
plugin action scheduler
Schedule one-off, recurring and cron actions with retries and an admin dashboard, run by Payload's job queue.
7136/wk10v3
payload automation
Workflow automation for Payload with hook, cron and webhook triggers, JSONata expressions and run history
70657/wk0v3
payload plugin outbound webhooks
Send signed HTTP webhooks on collection create, update and delete, delivered durably through the Jobs Queue
596/wk0v3
plugin emails
Transactional emails defined in code, with copy editors can change, preview and test-send from the admin.
7029/wk10v3
payload mailing
Template-based email with layouts, scheduling and job-queue delivery through Payload collections
68290/wk1v3
payload plugin
Email advocacy and contact management with broadcasts, forms and letter campaigns inside the Payload admin
5729/wk2v3