fix_phpmailer_messageid()获取phpmailer发送的信息

目录

描述

Correct From: host on outgoing email to match the site domain. It is just a wrapper function for:

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
$phpmailer->Hostname = $current_site->domain;

fix_phpmailer_messageid() 描述

用法

<?php fix_phpmailer_messageid$phpmailer ?>

fix_phpmailer_messageid() 用法

参数

$phpmailer

(PHPMailer object) (必填) outgoing email transport object

默认值: None

fix_phpmailer_messageid() 参数

示例

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */

fix_phpmailer_messageid( $phpmailer );

echo $phpmailer->Hostname;

fix_phpmailer_messageid() 示例

注意

  • 使用到 global $current_site.

fix_phpmailer_messageid() 注意

历史

添加于 版本: MU (WordPress 3.0.0)

fix_phpmailer_messageid() 历史

源文件

fix_phpmailer_messageid() 函数的代码位于 wp-includes/ms-functions.php

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * Correct From host on outgoing mail to match the site domain
 *
 * @since MU
 */
function fix_phpmailer_messageid( $phpmailer ) {
	$phpmailer->Hostname = get_current_site()->domain;
}

fix_phpmailer_messageid() 源文件

相关