Mailvat
Mailvat
Description
Mailvat routes all your outgoing emails to your SMTP service for easy local development.
My recommendation is to use Mailpit in your development environment with this plugin.
This is an UNOFFICIAL plugin that just integrates Mailpit or MailHog in WordPress.
Installation
- Upload the plugin folder to the plugins directory, e.g. the
/wp-content/plugins/directory - Optionally: Configure your Mailpit SMTP settings by using the
MAILVAT_HOSTandMAILVAT_PORTconstants - Activate the plugin through the ‘Plugins’ menu in WordPress
Faq
Mailvat is a simple plugin that integrates your SMTP testing tool, like Mailpit or MailHog, with WordPress.
Mailpit is a nice email testing tool for developers. All outgoing emails from your website end up in the inbox in Mailpit, instead of being sent to the original recipients. This helps us testing our emails.
Define the Mailpit SMTP configuration values and activate this plugin.
If you do not define the MAILVAT_HOST and MAILVAT_PORT constants yourself, these will be used by default:
MAILVAT_HOST=mailpit
MAILVAT_PORT=1025
This is NOT an official plugin from the creators of Mailpit or MailHog. I am not related to anyone in the Mailpit or the MailHog team.
This is just a simple plugin to easily use an SMTP service, like Mailpit or MailHog, with WordPress. I made this plugin because I could not find it yet and it speeds up our local development if we can easily install this integration in WordPress.
Reviews
Works as described
By Pär Thernström (eskapism) on June 20, 2025
Been using this together with docker compose to run multiple local WordPress test installations. While developing a new email report feature for one of my plugins this plugin has been really useful to quickly get Mailpit integration working. Just install and activate and it works 🎉.