Title: Redirect Emails on Staging
Author: Jeremy Pry
Published: <strong>1 August 2013</strong>
Last modified: 18 March 2022

---

Search plugins

This plugin **hasn’t been tested with the latest three 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://s.w.org/plugins/geopattern-icon/redirect-emails-on-staging.svg)

# Redirect Emails on Staging

 By [Jeremy Pry](https://profiles.wordpress.org/jpry/)

[Download](https://downloads.wordpress.org/plugin/redirect-emails-on-staging.1.2.0.zip)

 * [Details](https://en-gb.wordpress.org/plugins/redirect-emails-on-staging/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/redirect-emails-on-staging/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/redirect-emails-on-staging/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/redirect-emails-on-staging/#developers)

 [Support](https://wordpress.org/support/plugin/redirect-emails-on-staging/)

## Description

When using the [Staging site](http://support.wpengine.com/staging/) on WP Engine,
you may want to prevent the staging version of your site from sending emails to 
your site users. This plugin redirects all emails to the site admin.

This plugin should be activated on your Production site. Don’t worry — it won’t 
do anything _unless_ it is active on Staging site. Once you create a new copy of
your Staging site, the plugin will start taking effect there.

This plugin is compatible with WordPress Multisite. If you’re using it in a Multisite
environment, it is recommended to either Network Activate the plugin, or follow 
the instructions for installing it to the `mu-plugins` directory.

## Installation

Simple installation:

 1. Upload the `redirect-emails-on-staging` folder to your `/wp-content/plugins/` directory
 2. Activate the plugin through the “Plugins” menu in WordPress

Advanced installation (`mu-plugins` directory):

 1. Upload _just_ the `redirect-emails-on-staging.php` file to your `/wp-content/mu-
    plugins/` directory
 2. That’s it… the plugin is already activated! Take a look under Plugins > Must Use

## FAQ

### Where do I find the Site Admin email?

On a normal WordPress installation, go to the Dashboard, then to Settings > General.
Look for the “E-mail Address” field.

On a Multisite WordPress installation, go to the Network Dashboard, then to Settings
> Network Settings. Look for the “Network Admin Email” field.

### What if I forget to install this plugin when I recreate my Staging Site?

It is recommended to activate this plugin on your Production site. It won’t have
any affect on your Production site email, and then when you go to recreate your 
Staging site, it will already be activated and working.

## Reviews

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

### 󠀁[Does not seem to work](https://wordpress.org/support/topic/does-not-seem-to-work-34/)󠁿

 [authentico](https://profiles.wordpress.org/authentico/) 16 November 2023 5 replies

With this plugin active, email still was sent to original intended target email (
when using Post SMTP for sending, not sure if that makes difference). Second, when
I disabled Post SMTP, no email got sent at all (expected: email is redirect to server
admin email address).

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/)

## Contributors and Developers

“Redirect Emails on Staging” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Jeremy Pry ](https://profiles.wordpress.org/jpry/)

[Translate “Redirect Emails on Staging” into your language.](https://translate.wordpress.org/projects/wp-plugins/redirect-emails-on-staging)

### Interested in development?

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

## Change Log

#### 1.2.0 – 2022-03-18

 * Add – Native wp_get_environment_type() support.
 * Add – Support for checking with Jetpack for staging.
 * Add – Support for modifying CC and BCC lists in emails.
 * Dev – Add separate changelog file.
 * Dev – add automated build process.
 * Tweak – WP 5.9 compatibility.

#### 1.1.0

 * Under-the-hood change: use a class for the main plugin functionality
 * Check PHP version with an activation hook
 * Update the “Tested up to” tag

#### 1.0.0

 * Created the plugin

## Meta

 *  Version **1.2.0**
 *  Last updated **5 years ago**
 *  Active installations **10+**
 *  WordPress version ** 5.5.0 or higher **
 *  Tested up to **5.9.19**
 *  PHP version ** 5.3.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/redirect-emails-on-staging/)
 * Tags
 * [email](https://en-gb.wordpress.org/plugins/tags/email/)[wpengine](https://en-gb.wordpress.org/plugins/tags/wpengine/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/redirect-emails-on-staging/advanced/)

## Ratings

 3 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/redirect-emails-on-staging/reviews/)

## Contributors

 *   [ Jeremy Pry ](https://profiles.wordpress.org/jpry/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/redirect-emails-on-staging/)