Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Stop Emails icon

Stop Emails

v1.2.1
by Sal Ferrarello · 5.0 (12 reviews)

Stop all outgoing emails sent from WordPress.

5K+ active installs Updated Nov 11, 2024 Tested to 6.7.2
Try Demo Download
Pre-installed Ready in ~10s No card

About Stop Emails

This plugin stops all outgoing emails sent from WordPress, including those generated by core, plugins, and themes. It allows users to suspend sending emails during development work, with the option to log all emails to the PHP error log. However, it does not stop emails sent using the PHP mail() function directly.

Screenshots

Stop Emails screenshot
Stop Emails screenshot

Changelog

1.2.1

  • Conditionally modify how our fake PHPMailer extends the real PHPMailer class based on changes in PHPMailer introduced in WordPress core 5.5. This eliminates the message “PHP Deprecated: class-phpmailer.php is deprecated since version 5.5.0!” in the error logs.

1.2.0

  • Add filter to force BuddyPress to use wp_mail() rather than its own BP_PHPMailer class

1.1.0

  • Add Italian translation (it_IT), thanks to Andrea Gherardi https://twitter.com/ilghera_TP

1.0.1

  • No changes to code functionality
  • “Tested Up To:” version bump to 4.2
  • Update to readme.txt to more clearly communicate plugin functionality
  • Version bump to 1.0.1

0.8.0

  • Overhaul of plugin includes: fixing issue with plugin not stopping emails, moving to a class structure, changing email stopping
    behavior to use the same technique as WordPress core tests, improved inline documentation,
    addtion of phpunit tests. Introduces a breaking change with https://github.com/salcode/stop-emails-logger

0.7.1

  • Added check for supporting files before loading them. Since the primary functionality
    is in stop-emails.php, adding this check allows stop-emails.php to be used in the
    mu-plugins/ directory (previously, it would throw warnings)

0.7.0

  • Added filter fe_stop_emails_log to allow other logging of blocked emails

0.6.2

  • “Tested Up To:” version bump to 4.0
  • Add plugin icons

0.6.1

  • “Tested Up To:” version bump to 3.9
  • Add Settings link to plugin page

0.6.0

  • Add admin settings page with option to enable logging of stopped emails to
    PHP error log

0.5.0

  • Correct breaking change

0.4.0

  • Add Spanish translation (es_ES), thanks to Andrew Kurtis from webhostinghub.com

0.3.0

  • Added support for localization

0.2.0

  • Added filter fe_stop_emails_log_email for $log_email value, which allows a programmer to add code to
    log the blocked emails in the php_error.log
  • Renamed functions and classes to follow WordPress standards

0.1.0

  • First release

Try other plugins