
π§ 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/mailpitWeb 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 π
