fix_phpmailer_messageid() WordPress Function

The fix_phpmailer_messageid() function is used to fix the PHPMailer message ID so that it does not include the hostname of the server. This is necessary when using PHPMailer with a host that does not support the message ID being set to the hostname.

fix_phpmailer_messageid( PHPMailer $phpmailer ) #

Corrects From host on outgoing mail to match the site domain


Parameters

$phpmailer

(PHPMailer)(Required)The PHPMailer instance (passed by reference).


Top ↑

Source

File: wp-includes/ms-functions.php

function fix_phpmailer_messageid( $phpmailer ) {
	$phpmailer->Hostname = get_network()->domain;
}


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More