Ticket #5294: no-sender.php

File no-sender.php, 379 bytes (added by westi, 9 months ago)

WordPress plugin to reverse the change

Line 
1 <?php
2 /*
3  * Plugin Name: pjw-wp-phpmailer-nosender
4  * Version: 0.1
5  * Plugin URI: http://blog.ftwr.co.uk/wordpress/
6  * Description: Unset the sender on PHPMailer
7  * Author: Peter Westwood
8  * Author URI: http://blog.ftwr.co.uk/
9  * */
10
11 add_action('phpmailer_init','pjw_phpmailer_init');
12
13 function pjw_phpmailer_init($php_mailer)
14 {
15     $php_mailer->Sender = '';
16 }
17 ?>