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
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
Release history
Version 1
Initial release
Setup instructions
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.