fix_phpmailer_messageid()
Corrects From host on outgoing mail to match the site domain.
No Hooks.
Returns
null. Nothing (null).
Usage
fix_phpmailer_messageid( $phpmailer );
- $phpmailer(PHPMailer\PHPMailer\PHPMailer) (required)
- The PHPMailer instance (passed by reference).
Changelog
| Since 3.0.0 | Introduced. |
fix_phpmailer_messageid() fix phpmailer messageid code WP 6.9.1
function fix_phpmailer_messageid( $phpmailer ) {
$phpmailer->Hostname = get_network()->domain;
}