Title: WP Mail From II
Author: Ben Huson
Published: <strong>Est 22, 2012</strong>
Last modified: Kevardhu 19, 2020

---

Search plugins

![](https://ps.w.org/wp-mailfrom-ii/assets/banner-772x250.png?rev=993629)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/wp-mailfrom-ii/assets/icon-256x256.png?rev=993629)

# WP Mail From II

 By [Ben Huson](https://profiles.wordpress.org/husobj/)

[Download](https://downloads.wordpress.org/plugin/wp-mailfrom-ii.2.0.zip)

 * [Details](https://cor.wordpress.org/plugins/wp-mailfrom-ii/#description)
 * [Reviews](https://cor.wordpress.org/plugins/wp-mailfrom-ii/#reviews)
 *  [Installation](https://cor.wordpress.org/plugins/wp-mailfrom-ii/#installation)
 * [Development](https://cor.wordpress.org/plugins/wp-mailfrom-ii/#developers)

 [Support](https://wordpress.org/support/plugin/wp-mailfrom-ii/)

## Description

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](https://wordpress.org/extend/plugins/wp-mailfrom/)
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](http://www.fslab.dk/))

## Screenshots

[⌊The settings page⌉⌊The settings page⌉[

The settings page

## Installation

Either install via the WordPress admin plugin installer or…

 1. Unzip `wp-mailfrom-ii.zip` in the `/wp-content/plugins/` directory, making sure
    the folder is called `wp-mailfrom-ii`.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Visit 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](https://wordpress.org/extend/plugins/wp-mailfrom/)
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' );
    ```

You should now use:

    ```
    get_option( 'wp_mailfrom_ii_name' );
    get_option( 'wp_mailfrom_ii_email' );
    ```

## FAQ

### Why does the From address still show as the default or show up as ‘sent on behalf of’ the default address?

Possibly your mail server has added a _Sender:_ header or is configured to always
set the _envelope sender_ to the user calling it.

### Why are emails not being sent?

Some hosts may refuse to relay mail from an unknown domain. See [https://trac.wordpress.org/ticket/5007](https://trac.wordpress.org/ticket/5007)
for more details.

## Reviews

![](https://secure.gravatar.com/avatar/e8fbb07471d40c471de3bae8946e509af6bccc74c5990a3dce9819417389c4b7?
s=60&d=retro&r=g)

### 󠀁[Lets me update Email From](https://wordpress.org/support/topic/lets-me-update-email-from/)󠁿

 [Fahrenhe1t](https://profiles.wordpress.org/fahrenhe1t/) Mis-Genver 3, 2017

I have a Wordpress installation on a local network, sending emails through sSMTP.
The mail relay does not allow default "From" addresses to have "wordpress@home" 
with no ".com." The plugin allows me to change the email address to be valid, and
allows mails to go through.

![](https://secure.gravatar.com/avatar/17bbc5f67a723c46f47e305bf7c08f94f1dd91532b90f6285f83c43c89aed114?
s=60&d=retro&r=g)

### 󠀁[The only one that works on WP Engine so far](https://wordpress.org/support/topic/the-only-one-that-works-on-wp-engine-so-far/)󠁿

 [noelsaw](https://profiles.wordpress.org/noelsaw/) Du 18, 2016

Great plugin. This is the only 1 out 4 (found here on WP.org repo) that would work
in one of WP Engine's environment (one of of their different infrastructure providers).

![](https://secure.gravatar.com/avatar/603cd3576aa04c8238b6f6f64ad85e9f318436850f88fe7f5e9401167dfdc619?
s=60&d=retro&r=g)

### 󠀁[Works in 4.5.3, keeps emails professional](https://wordpress.org/support/topic/works-in-453-keeps-emails-professional/)󠁿

 [John.Hicks](https://profiles.wordpress.org/johnhicks/) Gwynngala 3, 2016

The plugin worked for me, using 4.5.3. If you're here, you might be having issues
with your hosting account sending emails as something like (BlueHost): username@
boxXXX.bluehost.com This is a problem. 1) It doesn't look professional, 2) it hands
out your username! This plugin helps you catch any plugins using wordpres@yoursite.
com, making it more of a one-stop solution, rather than digging through each of 
your plugin's settings to possibly find a solution.

![](https://secure.gravatar.com/avatar/bffe9d857dcf6561761f14e789cc0b9088463e2a339939d776ae164348567596?
s=60&d=retro&r=g)

### 󠀁[Solved my problem](https://wordpress.org/support/topic/solved-my-problem-18/)󠁿

 [Knopenman](https://profiles.wordpress.org/knopenman/) Gwynngala 3, 2016

E-mail confirmation of contact form bounced, but this plugin solved the problem

![](https://secure.gravatar.com/avatar/0afcf6a42f0abb4f81c88746863205a60ee536099d649d8a6a7e31eead35654c?
s=60&d=retro&r=g)

### 󠀁[Simple and effective](https://wordpress.org/support/topic/simple-and-effective-521/)󠁿

 [Marco Chiesi](https://profiles.wordpress.org/marcochiesi/) Gwynngala 3, 2016

It just does what it is supposed to do. Thanks. P.S. I think these settings should
part of WordPress core.

![](https://secure.gravatar.com/avatar/070f6d75983cd8d6895bda91c85da384aa2f23a46f24b5ec0fdac1164af2355c?
s=60&d=retro&r=g)

### 󠀁[Works](https://wordpress.org/support/topic/works-844/)󠁿

 [gebiert](https://profiles.wordpress.org/gebiert/) Gwynngala 3, 2016

Not much to say here: the plugin works as expected.

 [ Read all 23 reviews ](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/)

## Contributors & Developers

“WP Mail From II” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Ben Huson ](https://profiles.wordpress.org/husobj/)

“WP Mail From II” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-mailfrom-ii/contributors)
for their contributions.

[Translate “WP Mail From II” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-mailfrom-ii)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-mailfrom-ii/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wp-mailfrom-ii/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-mailfrom-ii/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-mailfrom-ii/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0

 * Add default values as placeholders in admin fields.
 * New method of getting sitename in WordPress 5.5+

#### 1.2

 * Make admin field labels clickable. Props [Viktor Szépe](https://github.com/szepeviktor).
 * Remove deprecated `screen_icon()`.

#### 1.1.1

 * Added Hungarian translation. Props [Viktor Szépe](https://github.com/szepeviktor).
 * Bump WordPress requirements.

#### 1.1

 * Added options to override the default WordPress email address and admin email
   address.
 * Added ‘wp_mailfrom_ii_default_from’ filter so you can add compatibility if the
   pluggable wp_mail() function is altered to use a different default email address.
 * Delete plugin options when uninstalled.
 * Reworked as a singleton class.
 * Remove filter support for original WP MailFrom plugin.

#### 1.0.2

 * Only set email address and name if overwriting the default WordPress values.

#### 1.0.1

 * Correctly style “save settings” button.

#### 1.0

 * Pretty much re-coded from scratch – now based around a core WP_MailFrom_II class.
 * Uses the [WordPress Settings API](https://codex.wordpress.org/Settings_API).
 * Stores name and email as `wp_mailfrom_ii_name` and `wp_mailfrom_ii_email` options.
   Upgrade support is provided for old options.

## Meta

 *  Version **2.0**
 *  Last updated **6 years ago**
 *  Active installations **5,000+**
 *  WordPress version ** 4.3 or higher **
 *  Tested up to **5.6.21**
 *  Languages
 * [English (UK)](https://en-gb.wordpress.org/plugins/wp-mailfrom-ii/), [English (US)](https://wordpress.org/plugins/wp-mailfrom-ii/),
   ha [Italian](https://it.wordpress.org/plugins/wp-mailfrom-ii/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-mailfrom-ii)
 * Tags
 * [email from](https://cor.wordpress.org/plugins/tags/email-from/)[from address](https://cor.wordpress.org/plugins/tags/from-address/)
   [from email](https://cor.wordpress.org/plugins/tags/from-email/)[mail](https://cor.wordpress.org/plugins/tags/mail/)
   [mail from](https://cor.wordpress.org/plugins/tags/mail-from/)
 *  [Advanced View](https://cor.wordpress.org/plugins/wp-mailfrom-ii/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  23 5-star reviews     ](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-mailfrom-ii/reviews/)

## Contributors

 *   [ Ben Huson ](https://profiles.wordpress.org/husobj/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-mailfrom-ii/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3DMFEA5C6ABCL)