MailSandbox
Test password resets and notifications without sending real emails.
After payment you get an email with your download link within a few minutes. The link is valid for 7 days.
Digital goods. If a tool doesn't work as described, we fix it or refund you — see Terms.
Key features
- Point your app at localhost:1025; browse messages at localhost:8025
- Messages stored in SQLite with text/HTML parts, headers and attachments
- JSON API to list, search and delete, so tests can assert subject and links
requirements.txt — no third-party packages needed
What's in the ZIP
- LICENSE
- README.md — up and running in under a minute
- mailsandbox.py — complete, readable source code
- requirements.txt — no third-party packages needed
Why PyForge: Ready-made tools with full source code.
More details
Test password resets and notifications without sending real emails. MailSandbox is a fake SMTP server with a web inbox in one Python file. - Point your app at localhost:1025; browse messages at localhost:8025 - Messages stored in SQLite with text/HTML parts, headers and attachments - JSON API to list, search and delete, so tests can assert subject and links Runs with: Python 3, zero dependencies. No STARTTLS or SMTP AUTH — localhost or private CI only. Last verified: Nov 23, 2026 · runs on Python 3.8–3.13
python3 mailsandbox.py --smtp-host 127.0.0.1 --http-host 127.0.0.1
# App settings: SMTP host localhost, port 1025, no TLS
# Inbox: http://localhost:8025
# In your tests
curl http://localhost:8025/api/emailsQuick Start
Runs on Python 3.9 or newer with the standard library only. Nothing to pip install.
1 — Run it
python mailsandbox.py --helpHow agents & programs use it: It uses only the Python standard library, so scripts and AI agents can run it as a subprocess without extra installs.
Why developers buy from PyForge
- Save hours: ready-made, tested tools. Skip writing, debugging and maintaining it yourself.
- Ready in minutes: one file, drop it in your project and run it.
- Mostly zero-dependency: no pip install chains, no supply-chain risk.
- Full source code: readable, auditable, yours to modify.
- Runs locally and offline: no account, no API key, no data leaves your machine.
- Pay once, own it: no subscription.
- Tested before release: every tool is checked before it goes on sale.
All-Access Pass
Get every PyForge tool with the All-Access Pass
49 tools today plus every future release, lifetime commercial license, one payment of $99.
This tool: $29 · All 49 tools: $99
See the All-Access Pass