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

Castlegate IT WP Mail Headers

Set default wp_mail From and Reply-To headers

by Castlegate IT · github.com/castlegateit/cgit-wp-mail-headers · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/castlegateit/cgit-wp-mail-headers/archive/refs/heads/main.zip

Declares an update source (https://github.com/castlegateit/cgit-wp-mail-headers), so updates arrive through the plugin's own updater.

Readme

Castlegate IT WP Mail Headers

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.

Read the full README on GitHub →

Releases

TagPublished
v1.0.2 Dec 19, 2025

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