sandywp / plugins / stop-emails

Stop Emails

5.0 out of 5 stars. 5.0 12 reviews

Stop all outgoing emails sent from WordPress.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.2.1 5,000+ installs WP 3.6+

your-sandbox.sandywp.com/wp-admin
Stop Emails running inside a SandyWP sandbox

What you get inside

2 screens
  • When the plugin is running, there will be a warning on the backend of the website.

  • Lies! The email wasn't really sent, we're running Stop Emails

About this plugin

Stops outgoing emails sent from WordPress. This plugin stops
outgoing emails generated by WordPress core, plugins, and themes.
Emails sent using the wp_mail() function, will not be sent.
In the case where an author does not use the recommended wp_mail()
function and instead sends the email using another mechanism, an email will
still be sent.

This plugin allows you to suspend sending emails when doing development work.
Any calls to wp_mail() will fail silently. WordPress
will operate as if the email were sent successfully
but no email will actually be sent.

On the admin menu page Settings > Stop Emails, there is the option
to log all emails to the PHP error log. By default this logging is
disabled.

NOTE: If using the PHP mail() function directly, this
plugin will NOT stop the emails.

Built by Sal Ferrarello / @salcode

Questions

Where do the emails go?

The emails are lost forever.

Why are some of my emails still being sent?

Most likely, this is due to a plugin you have running.
There are two different things the plugin could be
doing to cause emails to still be sent.

  1. The plugin is overriding our overriding of the sending mechanism.
  2. The plugin is calling the PHP function mail() directly.

Unfortunately in either of these cases, this plugin will not be able to stop
the email.

Known Incompatible Plugins?

A list of Known Incompatible Plugins is available at https://github.com/salcode/stop-emails/wiki/Known-Incompatible-Plugins.

I want to log the emails that are stopped

You can enable logging of stopped emails on the
admin menu page Settings > Stop Emails.

Emails will be logged to your PHP error log.

Why would I want install in the mu-plugins directory?

Activating a plugin normally requires logging into the site.
Installing the file in the mu-plugins directory allows you to
activate the plugin without logging in. This can be
helpful when setting up an existing site locally.

Where can I report a bug?

Please report bugs at https://github.com/salcode/stop-emails/issues

5.0

12 reviews

  • 5 ★ 12
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

  • Query Monitor

    4.9 · 200K+ installs

    Query Monitor is the developer tools panel for WordPress and WooCommerce.

  • Yoast Test Helper

    4.9 · 60K+ installs

    This plugin makes testing Yoast SEO, Yoast SEO add-ons and integrations and resetting the different features a lot easier.

  • What The File

    4.9 · 40K+ installs

    What The File is the best tool to find out what template parts are used to display the page you're currently viewing!

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.