Title: MailHog for WordPress
Author: Tareq Hasan
Published: <strong>2018 年 12 月 26 日</strong>
Last modified: 2021 年 7 月 28 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# MailHog for WordPress

 作者：[Tareq Hasan](https://profiles.wordpress.org/tareq1988/)

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

 * [详情](https://cn.wordpress.org/plugins/wp-mailhog-smtp/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-mailhog-smtp/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-mailhog-smtp/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-mailhog-smtp/#developers)

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

## 描述

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.

## 安装

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

## 常见问题

### 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.

## 评价

![](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/) 2025 年 1 月 21 日

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/) 2024 年 2 月 13
日

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/) 2023 年 12 月 12 日

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/) 2022 年 7 月 9 日

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/) 2022 年 6 月 28 日

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/) 2022 年 3 月 24 日

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' );

 [ 阅读所有12条评价 ](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/)

## 贡献者及开发者

「MailHog for WordPress」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「MailHog for WordPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-mailhog-smtp)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-mailhog-smtp/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-mailhog-smtp/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-mailhog-smtp/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-mailhog-smtp/)。

## 更新日志

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

 * WordPress 5.8 compatibility

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

 * Initial release.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  PHP 版本 ** 5.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-mailhog-smtp/)
 * 标签
 * [mail](https://cn.wordpress.org/plugins/tags/mail/)[mailer](https://cn.wordpress.org/plugins/tags/mailer/)
   [smtp](https://cn.wordpress.org/plugins/tags/smtp/)[wordpress smtp](https://cn.wordpress.org/plugins/tags/wordpress-smtp/)
   [WP Mail SMTP](https://cn.wordpress.org/plugins/tags/wp-mail-smtp/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-mailhog-smtp/advanced/)

## 评级

 4.7 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/wp-mailhog-smtp/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-mailhog-smtp/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://tareq.co/donate/)