Skip to main content
  1. Posts/

Mailpit: SMTP Email Testing Tool for Developers

··259 words·2 mins·

📧 Mailpit: Test Emails Locally Without Sending Them to Anyone
#

Need to test email sending in your app without actually reaching anyone? Mailpit is the answer: a local SMTP server with a modern web interface.

✨ What Does It Do?
#

It acts as a local SMTP server that captures all emails sent by your app and displays them in a web UI. Perfect for development and testing.

🔑 Key Features
#

🌐 Modern web UI – view formatted HTML, source code, headers, attachments, and image thumbnails 🔌 REST API – for integration with automated tests ⚡ Ultra-fast – ingests 100-200 emails per second 🐳 Docker-ready – multi-architecture images available 🔔 Real-time – WebSocket updates when new mail arrives 🧪 Chaos mode – configurable SMTP errors to test app resilience 🔗 Link checker – automatically verifies all links in the email 📱 Mobile/tablet preview – toggle from desktop

📦 Install in Seconds
#

# Mac
brew install mailpit

# Linux
sudo sh < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh)

# Docker
docker run -d -p 8025:8025 -p 1025:1025 axllent/mailpit

Web UI at http://localhost:8025, SMTP on port 1025.

💡 In Simple Terms
#

It’s like having a fake mailbox for your app: all emails your code sends end up there, you can review them with a nice UI, and you never bother any real person.

More information at the link 👇

Also published on LinkedIn.
Juan Pedro Bretti Mandarano
Author
Juan Pedro Bretti Mandarano