Created
March 16, 2015 08:29
-
-
Save vishalbasnet23/8be2a7790f2097cc0ee9 to your computer and use it in GitHub Desktop.
Change Return Path of wp_mail()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Return Path Change | |
| */ | |
| class email_return_path { | |
| function __construct() { | |
| add_action( 'phpmailer_init', array( $this, 'fix' ) ); | |
| } | |
| function fix( $phpmailer ) { | |
| $phpmailer->Sender = $phpmailer->From; | |
| } | |
| } | |
| new email_return_path(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment