Download the PHP package innocode-digital/wp-mail-helpers without Composer
On this page you can find all versions of the php package innocode-digital/wp-mail-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innocode-digital/wp-mail-helpers
More information about innocode-digital/wp-mail-helpers
Files in innocode-digital/wp-mail-helpers
Package wp-mail-helpers
Short Description Overrides mail From headers, adds check of mail functionality.
License GPL-2.0+
Informations about the package wp-mail-helpers
Mail Helpers
Description
Overrides mail From headers, adds check of mail functionality.
Install
-
Preferable way is to use Composer:
`
By default it will be installed as Must Use Plugin. But it's possible to control with
extra.installer-paths
incomposer.json
. -
Alternate way is to clone this repo to
wp-content/mu-plugins/
orwp-content/plugins/
:`
If plugin was installed as regular plugin then activate Mail Helpers from Plugins page
or WP-CLI: wp plugin activate wp-mail-helpers
.
Usage
Constants
If it's needed to override From mail headers in all emails then next constant should be
added (usually to wp-config.php
):
`
Notes
It's not required to set both constants, in most cases you only need to set MAIL_FROM_ADDRESS
.
Plugin sets hook with pretty big priority 9999
but another plugins and themes could set
bigger value and in this case you should change priority according to your needs, e.g.:
Settings
There is a possibility to set From mail headers in WordPress administration panel: Settings > Mail. From Email should be verified in a similar way like WordPress verifies Administration Email Address. These settings have bigger priority than constants.
Tools
Plugin adds a tool for testing mail functionality. You can send a test email in WordPress administration panel from Tools > Mail page.