WP Manifestindependent plugin directory
manifest / email / cgit-wp-disable-mail

Castlegate IT WP Disable Mail

Disable email sent with the wp_mail function.

★ 0stars
v1.2.3latest · 10mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/castlegateit/cgit-wp-disable-mail/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Castlegate IT WP Disable Mail replaces wp_mail() with a function that returns true without sending mail to prevent a WordPress website from sending mail. Any other plugins that replace the wp_mail() function should be disabled while this plugin is active.

If the constant CGIT_WP_DISABLE_MAIL_LOG has been defined, the plugin will log all attempts to send mail to this file.

define('CGIT_WP_DISABLE_MAIL_LOG', '/path/to/mail.log');

License

Released under the MIT License. See LICENSE for details.

Releases

2 releases.

Tag
Published
v1.2.3 latest
Dec 19, 2025 10mo ago
Dec 19, 2025 10mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.