fix_phpmailer_messageid() WordPress Function
The fix_phpmailer_messageid() function is used to fix the PHPMailer message ID so that it does not include the hostname of the server. This is necessary when using PHPMailer with a host that does not support the message ID being set to the hostname.
fix_phpmailer_messageid( PHPMailer $phpmailer ) #
Corrects From host on outgoing mail to match the site domain
Parameters
- $phpmailer
(PHPMailer)(Required)The PHPMailer instance (passed by reference).
Source
File: wp-includes/ms-functions.php
function fix_phpmailer_messageid( $phpmailer ) { $phpmailer->Hostname = get_network()->domain; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |