Skip to content

kmvishn/devmailbox

Repository files navigation

Dev Mail Box

Dev Mail Box

A lightweight local SMTP server with a clean Flask-based web UI for viewing and sending test emails — perfect for development environments.

🚀 Features

  • Local SMTP Server – Captures all outgoing mail on 127.0.0.1:1025
  • Web UI – Browse messages, view raw source, send new messages
  • No External SMTP – No username/password required
  • Cross-Platform – Runs on Windows, macOS, and Linux
  • Packagable – Build to .exe with PyInstaller for easy sharing on Windows

📦 Installation

Option 1 – Using uv (Recommended)

uv sync

Installs all dependencies from pyproject.toml or requirements.txt.


Option 2 – Using pip

pip install -r requirements.txt

▶️ Running the App

python main.py

You’ll see output like:

📨 SMTP server running on 127.0.0.1:1025
🌐 Web UI available at http://127.0.0.1:5000

🌍 Usage

  1. Point your app’s SMTP settings to:

    • Host: 127.0.0.1
    • Port: 1025
    • Username / Password: (Leave blank)
  2. Access the Web UI: Open http://127.0.0.1:5000 in your browser.

  3. View Messages: Browse captured messages, read full content, or view raw email source.

  4. Send a Test Email: Use the Send page in the UI to send a new message to the SMTP server.


🛠 Building to EXE (Optional)

Using PyInstaller:

pyinstaller --onefile main.py

The compiled executable will be inside the dist/ folder.


📥 Download Release

Get the latest Windows executable here: https://github.com/jztchl/devmailbox/releases


📄 Requirements

Minimal dependencies:

Flask>=3.0.0
aiosmtpd>=1.4.5

📜 License

MIT License — use freely for development purposes.

About

Local SMTP + Web UI for capturing and testing emails. Fast, simple, no config—perfect for dev workflows.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages