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

Castlegate IT WP Mail Headers

Set default wp_mail From and Reply-To headers

★ 0stars
v1.0.2latest · 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-mail-headers/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.

Replace the From header and set a default Reply-To header on all mail sent by the default wp_mail function. The default values are set by two required constants:

define('CGIT_WP_MAIL_HEADERS_FROM', 'Example Name <example@example.com>');
define('CGIT_WP_MAIL_HEADERS_REPLY_TO', 'Example Name <example@example.com>');

These constants should be set in wp-config.php. The From header will always be replaced with the default value. The Reply-To header will only be added if the email does not already have a Reply-To header.

License

Released under the MIT License. See LICENSE for details.

Releases

1 release.

Tag
Published
v1.0.2 latest
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.