wp_mail return-path

Simple plugin that sets the PHPMailer->Sender variable so that the return-path is correctly set when using wp_mail.

Author:Barnaby Puttick (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:6.3.3
Plugin version:1.1.1
Added to WordPress repository:18-12-2015
Last updated:11-12-2023
Rating, %:100
Rated by:8
Plugin URI:
Total downloads:26 347
Active installs:5 000+
plugin download
Click to start download

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.


ChangeLog