A WordPress-centric search engine for devs and theme authors



fix_phpmailer_messageid ›

Since3.0.0
Deprecatedn/a
fix_phpmailer_messageid ( $phpmailer )
Parameters:
  • (PHPMailer) $phpmailer The PHPMailer instance (passed by reference).
    Required: Yes
Defined at:
Codex:
Change Log:
  • MU

Correct From host on outgoing mail to match the site domain



Source

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