saas-starter-kits

Email Kit for Next.js

Production email for Next.js: SMTP, queue, templates, bulk send, bounces, and unsubscribe compliance. Category: API Integrations Price: jepja diku 30 euro

Next.jsPostgreSQL
~30 min setupBeginner
6 views0 purchases
$40.00

About this kit

Ship transactional and marketing email in your Next.js app without building SMTP, queues, or compliance from scratch.

What you get

•⁠ ⁠Copy-paste ⁠ lib/email/ ⁠ module for any Next.js App Router + Postgres app

•⁠ ⁠Full demo app with admin dashboard (SMTP, profiles, queue, bulk, webhooks)

•⁠ ⁠8 HTML templates + React Email previews (password reset, verify email, welcome, etc.)

•⁠ ⁠Postgres-backed queue with retries and cron worker

•⁠ ⁠SMTP profiles: transactional vs marketing, priority failover

•⁠ ⁠Bulk send with suppression list and marketing opt-in checks

•⁠ ⁠Unsubscribe footer, List-Unsubscribe headers, public unsubscribe page (RFC 8058)

•⁠ ⁠Bounce handling, outbound webhooks, attachments, analytics

What's included

SMTP profiles with transactional vs marketing routing and failover
Postgres email queue with retries, cron worker, and job dashboard
8 ready-made templates plus React Email previews
Bulk send with bounce suppression and marketing opt-in checks
Unsubscribe compliance: footer, List-Unsubscribe, public unsubscribe page
Outbound webhooks for sent, failed, bounced, and suppressed events
Admin dashboard: playground, queue, audiences, SMTP, webhooks

Release history

  1. Version 1

    Initial release

Setup instructions

~30 min setupBeginner

1.⁠ ⁠Unzip the kit (or clone the repo).

2.⁠ ⁠Copy ⁠ .env.example ⁠ to ⁠ .env ⁠.

3.⁠ ⁠Run: ⁠ npm install ⁠

4.⁠ ⁠Run: ⁠ npm run db:create ⁠ then ⁠ npm run db:migrate ⁠

5.⁠ ⁠Run: ⁠ npm run dev ⁠ and open http://localhost:3000/dashboard

Default ⁠ .env ⁠ uses EMAIL_LOG_ONLY=true - emails print to the terminal, no SMTP needed for first run.

## Integrate into your app

1.⁠ ⁠Copy ⁠ lib/email/ ⁠ into your Next.js project.

2.⁠ ⁠Copy all files from ⁠ prisma/migrations/ ⁠ and run ⁠ npx prisma migrate deploy ⁠.

3.⁠ ⁠Add env vars from ⁠ .env.example ⁠ (JWT_SECRET, DATABASE_URL, NEXT_PUBLIC_APP_URL).

4.⁠ ⁠In your auth routes, call:

- ⁠ sendEmailVerificationEmail(email, token) ⁠ on signup

- ⁠ sendPasswordResetEmail(email, token) ⁠ on forgot password

See INTEGRATION.md in the kit for full API reference.

You might also like

Related kits

Buyer reviews

No published reviews yet.

Skip months of boilerplate

Get instant access to the full source code and setup docs after purchase.