Mailgun
EmailReceipt emails. Sends trusted purchase receipts through Mailgun after payment is confirmed.
Delivery webhooks. Verifies Mailgun events and records deliveries, bounces, and complaints once.
Refund emails. Sends refund confirmations tied to the original purchase and customer record.
Transactional email with every delivery accounted for.
Mined from production apps and scanned for secrets on every release. Typed end to end.
Mailgun starter code pack
A production-mined Mailgun structure for the Messages API, templates, receipts, mailing lists, delivery webhooks, domain verification, and setup.
After you buy, one prompt pulls it in
Click, then paste into your AI chat. Your agent installs Boost OS and wires in the Mailgun starter code pack.
Then just tell your agent what you want
Your AI coding agent · with Boost OS
Send account emails and stop mailing addresses that bounce.
Building from the Mailgun pack:
Message sending from src/emails, delivery webhooks from src/webhooks, and list hygiene from src/subscriptions.
Everything stays wired through src/lib/app-adapter.ts, with no raw Mailgun calls scattered through your app.
- Cursor
- Claude Code
- Codex
- GitHub Copilot
- Windsurf
What you get
- Send messages through one provider contract
- Build reusable account and receipt templates
- Manage mailing lists without duplicate members
- Verify delivery events before changing state
- Handle bounces and complaints automatically
- Check your sending domain before launch
The move list
12 modules across three jobs. Open any module to see every file inside it.
Get paid
Take the money: one-time, recurring, metered, or agent-initiated.
- Receipt emailsSends trusted purchase receipts through Mailgun after payment is confirmed.1 file
- Mailing listsKeeps list membership and allowed messages aligned without duplicate customer records.2 files
- Send limitsTracks Mailgun volume against account limits and prevents accidental sending loops.1 file
- Agent messagesLets approved AI workers send limited customer emails through the same provider rules.1 file
After the sale
Deliver access, send the emails, and handle refunds without drama.
- Send queueRuns follow-up email work after trusted app events without sending duplicates.1 file
- Messages APIBuilds and sends reusable account, receipt, and activity messages through Mailgun.2 files
- Email preferencesLets customers manage allowed message types while preserving required account notices.2 files
- Refund emailsSends refund confirmations tied to the original purchase and customer record.1 file
The safety rails
The plumbing that keeps every event verified and every grant counted once.
- Delivery webhooksVerifies Mailgun events and records deliveries, bounces, and complaints once.6 files
- VerifyChecks domains, templates, event signatures, and failure paths before launch.1 file
- Email providerCentralizes the Mailgun client behind a provider contract your app can replace later.5 files
- Domain verificationMaps API keys, sending domains, DNS records, and webhook settings into your app.14 files
Provenance
Extracted from production Mailgun email systems serving real customers
Frequently asked questions
Is this a Mailgun Next.js starter?
Yes. The pack is built for Next.js apps that need the Messages API, reusable templates, receipts, mailing lists, delivery webhooks, domain verification, and setup.
Does it include Mailgun delivery webhooks?
Yes. It verifies event signatures, connect deliveries and bounces to the original message, and handle repeat webhook deliveries safely.
Is the Mailgun code pack available now?
Yes. Every active Boost OS license includes it with no separate purchase; onboard it from the pill on this page: click, paste the prompt into your AI chat, and your agent does the rest.
Can I convert this pack to Python or another language?
The Mailgun pack ships in TypeScript. Every module is adapter-based and written with plain comments, so you can ask your AI agent in chat to convert any module to your language and keep the logic intact. The TypeScript version stays the source of truth for updates.
Add the Mailgun card to your collection
One $199 license includes every current and future production code pack.
Get Boost OS