fix_phpmailer_messageid( PHPMailer $phpmailer )

Corrects From host on outgoing mail to match the site domain.

Parameters

$phpmailerPHPMailerrequired
The PHPMailer instance (passed by reference).

Source

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

Changelog

VersionDescription
MU (3.0.0)Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.