This page redirects to an external site: https://developer.wordpress.org/reference/functions/fix_phpmailer_messageid/
Correct From: host on outgoing email to match the site domain. It is just a wrapper function for:
$phpmailer->Hostname = $current_site->domain;
<code style="color: #000000"><span style="color: #0000BB"><?php fix_phpmailer_messageid</span><span style="color: #007700">( </span><span style="color: #0000BB">$phpmailer </span><span style="color: #007700">) </span><span style="color: #0000BB">?></span></code>
The PHPMailer object is modified directly, no value is returned.
fix_phpmailer_messageid( $phpmailer ); echo $phpmailer->Hostname;
fix_phpmailer_messageid() is located in wp-includes/ms-functions.php
wp-includes/class-phpmailer.php - the PHPMailer class file within WordPress core.