WP Mail From II
This plugin allows you to set the email address and name used for emails sent by WordPress by setting the From: header. It is an updated and fully re-worked version of the WP Mail From plugin by Tristan Aston and now works with the latest versions of WordPress. Adds a “Mail From” section in the “Set
This plugin allows you to set the email address and name used for emails sent by WordPress by setting the From: header.
It is an updated and fully re-worked version of the WP Mail From plugin by Tristan Aston and now works with the latest versions of WordPress.
- Adds a “Mail From” section in the “Settings” menu.
- The plugin uses the filter hooks wp_mail_from and wp_mail_from_name .
- The priority for the hooks is set to 1 to allow for other plugins that may hook these with the default priority of 10 to override this plugin.
Danish translation by Frederik Svarre ( www.fslab.dk )
A closer look.
Either install via the WordPress admin plugin installer or…
- 01Unzip wp-mailfrom-ii.zip in the /wp-content/plugins/ directory, making sure the folder is called wp-mailfrom-ii .
- 02Activate the plugin through the ‘Plugins’ menu in WordPress.
- 03Visit the admin settings page Settings > Mail From and save your preferred name and email address.
Upgrading from the old WP Mail From plugin
This version is pretty much a complete re-write, fixes loads of bugs and works with the most recent versions of WordPress.
If upgrading from the WP Mail From plugin your current name an email settings should be copied across but please check. To upgrade simply activate this plugin then deactivate the old WP Mail From plugin.
Option naming conventions have changed in this version of the plugin. If you accessed either of the options directly for any reason you will need to re-factor you code as support for the old options will be removed in a future version.
The old options used to be retrieved as follows:
get_option( 'site_mail_from_name' ); get_option( 'site_mail_from_email' );