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