Title: wp_mail return-path
Author: barnz99
Published: <strong>December 18, 2015</strong>
Last modified: December 11, 2023

---

Search plugins

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-mail-returnpath/assets/icon-256x256.png?rev=3008134)

# wp_mail return-path

 By [barnz99](https://profiles.wordpress.org/barnz99/)

[Download](https://downloads.wordpress.org/plugin/wp-mail-returnpath.zip)

 * [Details](https://kea.wordpress.org/plugins/wp-mail-returnpath/#description)
 * [Reviews](https://kea.wordpress.org/plugins/wp-mail-returnpath/#reviews)
 *  [Installation](https://kea.wordpress.org/plugins/wp-mail-returnpath/#installation)
 * [Development](https://kea.wordpress.org/plugins/wp-mail-returnpath/#developers)

 [Support](https://wordpress.org/support/plugin/wp-mail-returnpath/)

## Description

This plugin sets the PHPMailer Sender (return-path) the same as the From address
if it’s not correctly set.

Mitigates the “via” and “The actual sender of” Notification in Outlook and stops
email going to spam/junk because of the mismatch between From and Return-Path headers.

This usually occurs on shared hosting servers when local user / domain is used as
default for the return-path header and WordPress only sets the From header.

## Installation

 1. Unzip all files to the `/wp-content/plugins/` directory
 2. Log into WordPress admin and activate the ‘Latest Tweets’ plugin through the ‘Plugins’
    menu

## Reviews

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

### 󠀁[Just what the doctor ordered](https://wordpress.org/support/topic/just-what-the-doctor-ordered-64/)󠁿

 [nigelpentland](https://profiles.wordpress.org/nigelpentland/) November 10, 2024

Works a treat and fixes an otherwise troublesome issue. Many thanks.

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

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

 [Em](https://profiles.wordpress.org/mcottell/) November 20, 2023

Needed to be able to set return-path email header in my WordPress emails so that
they don’t get flagged as spam. This plugin does the trick.

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

### 󠀁[Thanks for the plugin. To be honest, this should be part of WP.](https://wordpress.org/support/topic/thanks-for-the-plugin-to-be-honest-this-should-be-part-of-wp/)󠁿

 [Anonymous User 9018418](https://profiles.wordpress.org/anonymized-9018418/) October
28, 2021

It works, and it fixes a major flaw of WP.

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

### 󠀁[All good](https://wordpress.org/support/topic/all-good-92/)󠁿

 [asterix30](https://profiles.wordpress.org/asterix30/) June 16, 2020

Finally I am able to use proper email addresses. Thanks

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

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

 [fuchsws](https://profiles.wordpress.org/fuchsws/) February 25, 2018

… and just does what it should do, thanks!

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

### 󠀁[Working with WP 4.9.2](https://wordpress.org/support/topic/working-with-wp-4-9-2/)󠁿

 [Thomas Maier](https://profiles.wordpress.org/webzunft/) February 1, 2018

It still works and solves the issue it supposed to solve.

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/wp-mail-returnpath/reviews/)

## Contributors & Developers

“wp_mail return-path” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ barnz99 ](https://profiles.wordpress.org/barnz99/)

[Translate “wp_mail return-path” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-mail-returnpath)

### Interested in development?

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

## Changelog

#### 1.1.1

 * Tested with 6.3

#### 1.1.0

 * Tested with 5.6.1
 * Fixed typo on filter_var
 * Changed to a singleton class

#### 1.0.3

 * Tested with WordPress 4.9.4

#### 1.0.2

 * Now only sets the sender if it’s not already set with a valid email address.

#### 1.0.1

 * Tested on 4.4

#### 1.0.0

 * Inital Release

#### 0.0.1

 * Beta Release

## Meta

 *  Version **1.1.1**
 *  Last updated **2 years ago**
 *  Active installations **5,000+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **6.3.8**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-mail-returnpath/)
 * Tags
 * [outlook](https://kea.wordpress.org/plugins/tags/outlook/)[phpmailer](https://kea.wordpress.org/plugins/tags/phpmailer/)
   [return-path](https://kea.wordpress.org/plugins/tags/return-path/)[sender](https://kea.wordpress.org/plugins/tags/sender/)
   [wp-mail](https://kea.wordpress.org/plugins/tags/wp-mail/)
 *  [Advanced View](https://kea.wordpress.org/plugins/wp-mail-returnpath/advanced/)

## Ratings

 5 out of 5 stars.

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

[Add my review](https://wordpress.org/support/plugin/wp-mail-returnpath/reviews/#new-post)

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

## Contributors

 *   [ barnz99 ](https://profiles.wordpress.org/barnz99/)

## Support

Got something to say? Need help?

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