Title: Disable Emails
Author: webaware
Published: <strong>2014 年 2 月 18 日</strong>
Last modified: 2026 年 5 月 12 日

---

搜索插件

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

# Disable Emails

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

[下载](https://downloads.wordpress.org/plugin/disable-emails.1.8.3.zip)

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

 [支持](https://wordpress.org/support/plugin/disable-emails/)

## 描述

Stop a WordPress website from sending any emails using the standard [wp_mail()](https://codex.wordpress.org/Function_Reference/wp_mail)
function. No emails will be sent, not even for password resets or administrator 
notifications.

WordPress websites can send emails for a variety of reasons — e.g user registration,
password reset, enquiry form submission, e-commerce purchase — but sometimes you
don’t want it to send anything at all. Some reasons for disabling all emails:

 * demonstration websites that allow users to do things that normally send emails
 * development / test websites with live data that might email real customers
 * bulk-loading data into websites which might trigger emails
 * adding new sites into multisite installations

> NB: if you need to run this plugin on WordPress 5.4 or earlier, and must install
> manually from a .zip file, please install version 1.6.3 which you can [download from the Advanced page for the plugin](https://wordpress.org/plugins/disable-emails/advanced/).
> Since version 1.7.0, WordPress 5.5 or later is required.

### _翻译_

感谢我们的翻译者所做出的慷慨贡献：

 * Chinese (zh-CN) — [Cai_Miao](https://profiles.wordpress.org/cai_miao) and [the Chinese translation team](https://translate.wordpress.org/locale/zh-cn/default/wp-plugins/disable-emails/)
 * Chinese (zh-TW) — [the Chinese (Taiwan) translation team](https://translate.wordpress.org/locale/zh-tw/default/wp-plugins/disable-emails/)
 * Czech (cs-CZ) — [Rudolf Klusal](http://www.klusik.cz/)
 * Dutch (nl_NL) — [the Dutch translation team](https://translate.wordpress.org/locale/nl/default/wp-plugins/disable-emails/)
 * English (en_CA) — [the English (Canadian) translation team](https://translate.wordpress.org/locale/en-ca/default/wp-plugins/disable-emails/)
 * English (en_GB) — [the English (UK) translation team](https://translate.wordpress.org/locale/en-gb/default/wp-plugins/disable-emails/)
 * French (fr_FR) — [the French translation team](https://translate.wordpress.org/locale/fr/default/wp-plugins/disable-emails/)
 * Korean (ko_KR) — [the Korean translation team](https://translate.wordpress.org/locale/ko/default/wp-plugins/disable-emails/)
 * Japanese (ja) — [Cai_Miao](https://profiles.wordpress.org/cai_miao) and [the Japanese translation team](https://translate.wordpress.org/locale/ja/default/wp-plugins/disable-emails/)
 * German (de-DE) — [Peter Harlacher](http://helvetian.io/)
 * Norwegian: Bokmål (nb-NO) — [neonnero](http://www.neonnero.com/)
 * Norwegian: Nynorsk (nn-NO) — [neonnero](http://www.neonnero.com/)
 * Russian (ru_RU) — [the Russian translation team](https://translate.wordpress.org/locale/ru/default/wp-plugins/disable-emails/)
 * Swedish (sv_SE) — [the Swedish translation team](https://translate.wordpress.org/locale/sv/default/wp-plugins/disable-emails/)

If you’d like to help out by translating this plugin, please [sign up for an account and dig in](https://translate.wordpress.org/projects/wp-plugins/disable-emails).

## 安装

 1. Either install automatically through the WordPress admin, or download the .zip 
    file, unzip to a folder, and upload the folder to your /wp-content/plugins/ directory.
    Read [Installing Plugins](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
    in the WordPress Codex for details.
 2. 通过WordPress的“插件”菜单激活插件。
 3. Optional: from the WordPress admin, navigate to Settings > Disable Emails and click
    the “Activate must-use plugin” if you want the plugin to always be activated, no
    matter what.

## 常见问题

### Why am I still getting standard WordPress emails?

You probably have another plugin that adds its own implementation of the `wp_mail()`
function. Try disabling some plugins.

In some circumstances, enabling the must-use plugin from settings will fix this,
because must-use plugins load before other plugins.

### Standard WordPress emails have stopped, but some others still get sent

You probably have a plugin that is sending emails via some other method, like directly
using the PHP `mail()` function, or directly implementing an SMTP client. Not much
I can do about that…

### How does it work?

The plugin replaces the standard WordPress `wp_mail()` function with a function 
that sends no emails. Nada. Zip. Silence.

Behind the scenes, it creates a private copy of PHPMailer and allows the system 
to interact with it, but silently suppresses the functions that send emails. The
standard WordPress filter and action hooks are supported, so plugins that register
hooks for those will still function as normal. It just doesn’t actually send any
emails.

### Can I make it a must-use plugin?

Yes. Once you have activated the plugin, navigate to Settings > Disable Emails and
click the “Activate must-use plugin”. This will create a must-use plugin (mu-plugin)
that ensures that Disable Emails is always loaded. This can be especially useful
on development websites where the database is frequently refreshed from a live site
which _does not_ have Disable Emails activated.

NB: if you activate the must-use plugin on a multisite, it will stop emails on all
sites on the multisite! If you have multiple networks on your multisite, the must-
use plugin will stop emails on all networks.

### 贡献

 * [Translate into your preferred language](https://translate.wordpress.org/projects/wp-plugins/disable-emails)
 * [Fork me on GitHub](https://github.com/webaware/disable-emails)

## 评价

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-41101/)󠁿

 [Marcos Nakamine](https://profiles.wordpress.org/marcosnakamine/) 2025 年 12 月
4 日

Works

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

### 󠀁[Perfect, nothing fancy.](https://wordpress.org/support/topic/perfect-nothing-fancy/)󠁿

 [Uday Kokitkar](https://profiles.wordpress.org/uday17035/) 2024 年 5 月 22 日

Just activate it and it works. No fancy popups, settings, begging for reviews, etc.

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

### 󠀁[Great and Simple](https://wordpress.org/support/topic/great-and-simple-180/)󠁿

 [Menn](https://profiles.wordpress.org/mennstudio/) 2023 年 12 月 1 日

This plugin helps a lot when you need to test or import and need to disable email
sending.

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

### 󠀁[Works perfectly! Staging site peace of mind.](https://wordpress.org/support/topic/works-perfectly-staging-site-peace-of-mind/)󠁿

 [AJD](https://profiles.wordpress.org/ajd/) 2023 年 11 月 20 日

We needed to make sure that automatic emails do not go out to customers from a staging
site. In conjunction with an mail logging plugin, you can still see which emails
would have gone out, so also great for troubleshooting email processes. Install,
activate, done. Thank you!

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

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-2129/)󠁿

 [Dani](https://profiles.wordpress.org/daniw42/) 2022 年 11 月 13 日

I’ve been using this Plugin a lot lately and it does a great job while also being
ridiculous easy.

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

### 󠀁[Great for our staging sites](https://wordpress.org/support/topic/great-for-our-staging-sites/)󠁿

 [Dave Loodts](https://profiles.wordpress.org/davelo/) 2022 年 6 月 14 日

Great plugin that we use on our staging sites. Some sites use a pre-order plugi 
for WooCommerce, sending out mails when particular launch date is there. Of course,
we don’t want the staging site to sent out mails. That’s a no go.

 [ 阅读所有20条评价 ](https://wordpress.org/support/plugin/disable-emails/reviews/)

## 贡献者及开发者

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

贡献者

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

「Disable Emails」插件已被翻译至 16 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/disable-emails/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

The full changelog can be found [on GitHub](https://github.com/webaware/disable-emails/blob/master/changelog.md).
Recent entries:

### 1.8.3

Released 2026-01-13

 * fixed: handle a non-array return from `wp_mail` filter hook

## 额外信息

 *  版本 **1.8.3**
 *  最后更新：**2 周前**
 *  活跃安装数量 **30,000+**
 *  WordPress 版本 ** 5.5 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/disable-emails/) 、 [Dutch](https://nl.wordpress.org/plugins/disable-emails/)、
   [English (Australia)](https://en-au.wordpress.org/plugins/disable-emails/) 、
   [English (Canada)](https://en-ca.wordpress.org/plugins/disable-emails/) 、 [English (New Zealand)](https://en-nz.wordpress.org/plugins/disable-emails/)、
   [English (South Africa)](https://en-za.wordpress.org/plugins/disable-emails/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/disable-emails/) 、 [English (US)](https://wordpress.org/plugins/disable-emails/)、
   [French (France)](https://fr.wordpress.org/plugins/disable-emails/) 、 [Japanese](https://ja.wordpress.org/plugins/disable-emails/)、
   [Korean](https://ko.wordpress.org/plugins/disable-emails/) 、 [Polish](https://pl.wordpress.org/plugins/disable-emails/)、
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/disable-emails/) 、 [Russian](https://ru.wordpress.org/plugins/disable-emails/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/disable-emails/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/disable-emails/)
   和 [Swedish](https://sv.wordpress.org/plugins/disable-emails/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/disable-emails)
 * 标签
 * [disable emails](https://cn.wordpress.org/plugins/tags/disable-emails/)
 *  [高级视图](https://cn.wordpress.org/plugins/disable-emails/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://shop.webaware.com.au/donations/?donation_for=Disable+Emails)