fix_phpmailer_messageid

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

Description

fix_phpmailer_messageid( (PHPMailer) $phpmailer ); 

Parameters (1)

0. $phpmailer (PHPMailer)
The PHPMailer instance, passed by reference.

Usage

  1. if ( !function_exists( 'fix_phpmailer_messageid' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4. // The PHPMailer instance, passed by reference. 
  5. $phpmailer = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = fix_phpmailer_messageid($phpmailer); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. function fix_phpmailer_messageid( $phpmailer ) { 
  2. $phpmailer->Hostname = get_network()->domain;