[wp-trac] [WordPress Trac] #19549: Please remove X-Mailer from class-phpmailer
WordPress Trac
noreply at wordpress.org
Mon Jun 22 07:50:32 UTC 2015
#19549: Please remove X-Mailer from class-phpmailer
----------------------------------------------------+----------------------
Reporter: jwz | Owner: westi
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: External Libraries | Version: 3.3
Severity: minor | Resolution: wontfix
Keywords: has-patch commit 3.5-early 2nd-opinion | Focuses:
----------------------------------------------------+----------------------
Comment (by Scott_N):
FWIW... I was able to remove the X-mailer headers from all outgoing emails
by adding the following code to my theme's functions.php file:
{{{
add_action( 'phpmailer_init', 'disable_xmailer' );
function disable_xmailer( $phpmailer ) {
$phpmailer->XMailer = ' ';
}
}}}
(Note there is a single space character between the quotes.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19549#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list