Skip to main content

Nº 01Guide

Catch test emails with Mailpit.

A staging site should not send order confirmations to real customers. Mailpit is a test inbox inside the project: the application sends as usual, the mail stays on the instance.

Updated:

02Guide

What Mailpit does

03Guide

Step by step

  1. 01

    Switch on Mailpit

  2. 02

    What the application gets

    MAILER_DSN=smtp://mailpit:1025
    MAIL_ENCRYPTION=null
    MAIL_HOST=mailpit
    MAIL_MAILER=smtp
    MAIL_PORT=1025
    SMTP_HOST=mailpit
    SMTP_PORT=1025
  3. 03

    Laravel

    php artisan tinker --execute="Mail::raw('hello', fn (\$m) => \$m->to('test@example.com')->subject('Mailpit test'));"
  4. 04

    Symfony

    php bin/console mailer:test test@example.com
  5. 05

    WordPress and older PHP

    wp eval 'var_dump(wp_mail("test@example.com", "WP test", "hello"));'
    php -r 'var_dump(mail("test@example.com", "mail() test", "hello"));'
  6. 06

    Open the inbox

    https://shop-mailpit.<customer>.envbay.dev

04Guide

Good to know

We ran every step of this guide on an Envbay instance on the Starter plan on 10 November 2026: Envoryx 0.46.7, Mailpit 1.31, Laravel 13, the Symfony template and WordPress 7.1 with PHP 8.5.

04FAQ

Frequently asked questions.

Q.01Can I send real email from the instance?
No. Ports 25, 465 and 587 are closed for outgoing traffic; the instances are meant for development and staging. Mailpit is there for checking mail.
Q.02Do I need credentials for Mailpit?
No. The application sends to mailpit:1025 without signing in. The web interface of the inbox only opens while you are signed in to the instance.
Q.03Do I need an SMTP plugin for WordPress?
No. With Mailpit in the project, wp_mail() arrives in the test inbox without a plugin. We checked that with WordPress 7.1.

Try it yourself.

Pick a plan, order, open your instance. Prices include 19% VAT.