Title: MailHog for WordPress
Author: Tareq Hasan
Published: <strong>December 26, 2018</strong>
Last modified: July 28, 2021

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-mailhog-smtp.svg)

# MailHog for WordPress

 By [Tareq Hasan](https://profiles.wordpress.org/tareq1988/)

[Download](https://downloads.wordpress.org/plugin/wp-mailhog-smtp.zip)

 * [Details](https://vec.wordpress.org/plugins/wp-mailhog-smtp/#description)
 * [Reviews](https://vec.wordpress.org/plugins/wp-mailhog-smtp/#reviews)
 *  [Installation](https://vec.wordpress.org/plugins/wp-mailhog-smtp/#installation)
 * [Development](https://vec.wordpress.org/plugins/wp-mailhog-smtp/#developers)

 [Support](https://wordpress.org/support/plugin/wp-mailhog-smtp/)

## Description

This plugin routes your emails to MailHog for development purpose.

If you are using [MailHog](https://github.com/mailhog/MailHog) on your development
environment, you can use this plugin to route your emails to MailHog.

## Installation

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

### How can I use the plugin?

Just activate the plugin, you don’t have to touch or change anything.

### What is MailHog?

MailHog is an email testing tool for developers.

## Reviews

![](https://secure.gravatar.com/avatar/9c51fb1f14bce2e3f57c4a95130b636b8579b88c35c36050104c15c51dd53f27?
s=60&d=retro&r=g)

### 󠀁[Lousiest support for new users](https://wordpress.org/support/topic/lousiest-support-for-new-users/)󠁿

 [ozhighfive](https://profiles.wordpress.org/ozhighfive/) January 21, 2025

Discovered this plugin after Mr Digital used it in one of his videos. You could 
write the FAQ for this plug-on on the back of a postage stamp in large letters.

![](https://secure.gravatar.com/avatar/a1b8d7bf10391a6e21656ae03ff30d3c0d876017cc50d10d9bfbf8892b2190fe?
s=60&d=retro&r=g)

### 󠀁[Perfect! It works excellently!](https://wordpress.org/support/topic/perfect-it-works-excellently/)󠁿

 [gregorwendland](https://profiles.wordpress.org/gregorwendland/) February 13, 2024

I just installed the plugin it works like a charm! Thank you! Also: works with WordPress
6.4.3!

![](https://secure.gravatar.com/avatar/1ef94169a4a3419913e50318c98a7fa2237a63f52b49386ebe54ba02666014f6?
s=60&d=retro&r=g)

### 󠀁[Plug and play! Just works!](https://wordpress.org/support/topic/plug-and-play-just-works/)󠁿

 [Fernando Acosta](https://profiles.wordpress.org/amgnando/) December 12, 2023

Thank you!

![](https://secure.gravatar.com/avatar/2ce24492279223e09e666c760384573bc045d78af32a1459b8fcf341f7ab56a1?
s=60&d=retro&r=g)

### 󠀁[Just activate and it works](https://wordpress.org/support/topic/just-activate-and-it-works/)󠁿

 [Pär Thernström](https://profiles.wordpress.org/eskapism/) July 9, 2022

Installed it, activated it, and MailHog started to receive emails. Just what I wanted!

![](https://secure.gravatar.com/avatar/2bbf5d68008a40dd09df7de61b7f06de29163885ca93e8b9706574aadc07ff12?
s=60&d=retro&r=g)

### 󠀁[Does what it says it does, and does it well](https://wordpress.org/support/topic/does-what-it-says-it-does-and-does-it-well-2/)󠁿

 [Denis Žoljom](https://profiles.wordpress.org/dingo_d/) June 28, 2022

This is a great example of how you don’t need to overcomplicate things, and still
make a great and super useful plugin. The plugin will just hook to phpmailer_init
and make it work with Mailhog. No configuration is needed, it just works. Great 
job 👍🏼

![](https://secure.gravatar.com/avatar/2e6628634a19029cfffec07fd783b79f922abca6e939f61840491672e096c04f?
s=60&d=retro&r=g)

### 󠀁[Great help for local dev](https://wordpress.org/support/topic/great-help-for-local-dev/)󠁿

 [sidben](https://profiles.wordpress.org/sidben/) March 24, 2022

I’ve been using this a lot lately on my local development. Like another person said,
to make it work on a docker container, you need to change the smtp host adding this
line to wp_config: define( 'WP_MAILHOG_HOST', 'mailhog' );

 [ Read all 12 reviews ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/)

## Contributors & Developers

“MailHog for WordPress” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Tareq Hasan ](https://profiles.wordpress.org/tareq1988/)

[Translate “MailHog for WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-mailhog-smtp)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-mailhog-smtp/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-mailhog-smtp/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-mailhog-smtp/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-mailhog-smtp/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### v1.0.1 – Jul 28th, 2021

 * WordPress 5.8 compatibility

#### v1.0 – December 3rd, 2018

 * Initial release.

## Meta

 *  Version **1.0.1**
 *  Last updated **5 years ago**
 *  Active installations **100+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **5.8.13**
 *  PHP version ** 5.3 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-mailhog-smtp/)
 * Tags
 * [mail](https://vec.wordpress.org/plugins/tags/mail/)[mailer](https://vec.wordpress.org/plugins/tags/mailer/)
   [smtp](https://vec.wordpress.org/plugins/tags/smtp/)[wordpress smtp](https://vec.wordpress.org/plugins/tags/wordpress-smtp/)
   [WP Mail SMTP](https://vec.wordpress.org/plugins/tags/wp-mail-smtp/)
 *  [Advanced View](https://vec.wordpress.org/plugins/wp-mailhog-smtp/advanced/)

## Ratings

 4.7 out of 5 stars.

 *  [  12 5-star reviews     ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/)

## Contributors

 *   [ Tareq Hasan ](https://profiles.wordpress.org/tareq1988/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-mailhog-smtp/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://tareq.co/donate/)