• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Programming / Stop Emails WordPress Plugin

Stop Emails WordPress Plugin

Last updated on June 14, 2016 by Sal Ferrarello

Stops outgoing emails.

Any outgoing emails will fail silently (i.e. WordPress will operate as if the email was sent successfully but no email will actually be sent).

Why

I’ve found when doing development work, sometimes I want to work on a site (often locally) but I don’t want it sending out any emails.

Now with a Settings Option for Logging

As of version 0.6, the plugin now includes an admin settings screen to activate logging of blocked emails.  When logging is activated, blocked emails will be written to your PHP error log file; this has proven valuable when doing development on emails generated within WordPress.

Available for download at the official WordPress Plugin Repository,
http://wordpress.org/plugins/stop-emails/

Featured News Story

This plugin was featured in WP Tavern’s article How to Stop WordPress From Sending Emails

Now available in Spanish

Plugin en el español (http://wordpress.org/plugins/stop-emails/) por Andrew de WebHostingHub

VVV and Mailcatcher

If you’re running Varying-Vagrant-Vagrants (a.k.a VVV) version 1.3.0 released on February 21, 2016 (or a newer version), you don’t need this Stop Emails plugin anymore. Instead, you can use Mailcatcher, which comes with VVV. Thank you to the ever informative Kevin Cristiano for introducing me to this feature.

Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit

Filed Under: Programming Tagged With: WordPress, WordPress Plugin

Reader Interactions

Comments

  1. Andrew Kurtis says

    January 27, 2014 at 6:45 am

    Hello Sal,

    My name is Andrew, I am with WebHostingHub. We have found at https://salferrarello.com/stop-emails-wordpress-plugin/ your Stop Emails plugin very interesting and we would like to translate it to Spanish language to help people from Hispanic community.
    Do I have your permission to do that?

    I hope I’ll hear from you soon.

    Kind regards

    Andrew Kurtis
    WebHostingHub

    Reply
    • Sal Ferrarello says

      January 29, 2014 at 1:16 pm

      Andrew, thanks for your request. I’m glad you like the plugin. This plugin is published under the GNU General Public License, version 2.0 thereby granting you permission to modify it as long as you follow the license. (Quick relevant notes about the GPL 2.0 available at their FAQ page).

      Ultimately I want to add support for translation so if you go that route, let me know and I’d love to update the plugin.

      Reply
      • Andrew Kurtis says

        February 3, 2014 at 4:31 am

        Hi Sal,
        Thank you for your answer.
        In order for me to do the translation, I need you to create the languages file, as explained here http://wpmu.org/localize-a-wordpress-plugin-and-make-it-translation-ready/ so I can access it with Po edit program .
        When you’re done just email me directly and I’ll start with translating.

        Thank you.

        Reply
        • Sal Ferrarello says

          February 4, 2014 at 10:28 pm

          The plugin is now updated on wordpress.org with support for localization. Thanks.

          Reply
  2. Max says

    November 23, 2015 at 7:13 pm

    Hi Sal –

    Thanks for the great plugin! However, I seem to have a problem. In addition to blocking the normal flow of outgoing email, the plugin appears to have also blocked messages submitted through my website’s contact form (logical, but did not occur to me until now).

    Is there any way for me to retrieve those messages?

    Thanks

    Reply
    • Sal Ferrarello says

      November 23, 2015 at 10:18 pm

      Hi Max,

      I’m sorry but unfortunately the default for the plugin is when an email is stopped it is not recorded anywhere. Under Settings there is an option to log stopped emails to your PHP error log but, again, this is off by default.

      I feel your pain as I have lost contact form submissions in the past. I now make sure to use a contact form plugin that logs entries when they’re submitted, Gravity Forms is my go-to contact form plugin. I realize this information does not help you in your current situation and I am sorry for that. Best of luck.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in