Hardwire Mailgun FROM address.
Set the Mailgun from address using the MAILGUN_FROM_ADDRESS constant. Will override other from addresses. Will also hardwire the Ninja Forms email from name and address.
by Per Soderlind · github.com/soderlind/hardwire-mailgun-from-adr · website
★ 0stars
3.4kcomposer installs
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/soderlind/hardwire-mailgun-from-adr/archive/refs/heads/main.zipAlso on Packagist as soderlind/hardwire-mailgun-from-adr:
composer require soderlind/hardwire-mailgun-from-adrDeclares an update source (https://github.com/soderlind/hardwire-mailgun-from-adr), so updates arrive through the plugin's own updater.
From the readme
Hardwire Mailgun FROM address.
If the constant MAILGUNFROMADDRESSis set, this plugin will hardwire the from address to the value of MAILGUNFROMADDRESS.
The WordPress Mailgun plugin set the address resolution order in this order:
1. From address given by headers - {@param $fromaddrheader}
2. From address set in Mailgun settings
3. From MAILGUNFROMADDRESS constant
4. From address constructed as wordpress@
So, if 1 or 2 above is true, the from address will not be set by the MAILGUNFROMADDRESS constant
https://github.com/mailgun/wordpress-plugin/blob/9da7978246a3983159c8577c1ac09cedc075a2da/includes/mg-filter.php#L142-L148
This filter will override these and use the MAILGUNFROMADDRESS constant.
The plugin will also hardwire the email from address and from name for Ninja Forms.
Installation
You know the drill.
Copyright and License
Hardwire Mailgun FROM address. is copyright 2021 Per Soderlind
Hardwire Mailgun FROM address. is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
Hardwire Mailgun FROM