Laragon

Mailpit

Test and debug emails effortlessly in a secure, local environment.

Email Testing Made Easy

Laragon bundles with Mailpit by default. Mailpit is a powerful email testing tool for developers. It captures outbound emails locally and provides a web UI to inspect and debug them.

Laragon Mailpit

Mailpit's Features

  • Fast & Lightweight
  • Captures emails locally via SMTP
  • Web UI to view, search, and inspect
  • Much more modern alternative to MailHog

Laragon automatically configures PHP to work seamlessly with Mailpit. When you use the mail() function, outgoing emails are captured and displayed instantly in the Mailpit Web UI for easy testing and debugging.

Environment variables configuration

If you don't use mail() function, set this in your application’s mail configuration (e.g. .env file):

MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null

This tells your app to send all outgoing emails to Mailpit instead of a real SMTP server.

🌐 Web Interface

After starting Mailpit, open your browser and visit:

http://localhost:8025

There you’ll see a live inbox of captured emails.

Mailpit is an essential tool for modern development workflows, allowing you to test and debug emails effortlessly in a secure local environment. With Laragon, using Mailpit becomes even easier and more enjoyable.