fix_phpmailer_messageid()
fix_phpmailer_messageid( PHPMailer $phpmailer )
从传出邮件的主机更正以匹配站点域
Correct From host on outgoing mail to match the site domain
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$phpmailer | (PHPMailer) | 必需 | PHPMailer实例(通过引用传递)。 |
返回(Return)
无返回值
源码(Source)
/** * Correct From host on outgoing mail to match the site domain * * @since MU */ function fix_phpmailer_messageid( $phpmailer ) { $phpmailer->Hostname = get_current_site()->domain; }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
MU (3.0.0) | wp-includes/ms-functions.php:2216 | 0 | 1 function |
笔记(Notes)
例子
fix_phpmailer_messageid() 为WP2原创文章,链接:https://www.wp2.cn/functions/fix_phpmailer_messageid/