Title: Mailvat
Author: robm89
Published: <strong>2024 年 1 月 31 日</strong>
Last modified: 2026 年 5 月 22 日

---

搜索插件

![](https://ps.w.org/mailvat/assets/icon-256x256.png?rev=3165489)

# Mailvat

 作者：[robm89](https://profiles.wordpress.org/robm89/)

[下载](https://downloads.wordpress.org/plugin/mailvat.1.0.13.zip)

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

 [支持](https://wordpress.org/support/plugin/mailvat/)

## 描述

Mailvat routes all your outgoing emails to your SMTP service for easy local development.

My recommendation is to use [Mailpit](https://github.com/axllent/mailpit) in your
development environment with this plugin.

This is an UNOFFICIAL plugin that just integrates Mailpit or MailHog in WordPress.

## 安装

 1. Upload the plugin folder to the plugins directory, e.g. the `/wp-content/plugins/`
    directory
 2. Optionally: Configure your Mailpit SMTP settings by using the `MAILVAT_HOST` and`
    MAILVAT_PORT` constants
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

### What is Mailvat?

Mailvat is a simple plugin that integrates your SMTP testing tool, like Mailpit 
or MailHog, with WordPress.

### What is Mailpit?

[Mailpit](https://github.com/axllent/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.

### How can I use this plugin?

Define the Mailpit SMTP configuration values and activate this plugin.

### What are the plugin’s default configuration values?

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

### Is this an official plugin from Mailpit or MailHog?

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.

## 评价

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

### 󠀁[Works as described](https://wordpress.org/support/topic/works-as-described-349/)󠁿

 [Pär Thernström](https://profiles.wordpress.org/eskapism/) 2025 年 6 月 20 日

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

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/mailvat/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ robm89 ](https://profiles.wordpress.org/robm89/)

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0.13**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/mailvat/)
 * 标签
 * [smtp](https://cn.wordpress.org/plugins/tags/smtp/)
 *  [高级视图](https://cn.wordpress.org/plugins/mailvat/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/mailvat/reviews/)

## 贡献者

 *   [ robm89 ](https://profiles.wordpress.org/robm89/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/mailvat/)