fix_phpmailer_messageid()

获取phpmailer发送的信息

描述

正确发件人:在传出电子邮件上托管以匹配站点域。它只是一个包装函数,用于:

$phpmailer->Hostname = $current_site->domain;

用法

<?php fix_phpmailer_messageid( $phpmailer ) ?>

参数

$phpmailer

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

默认值: None

示例

fix_phpmailer_messageid( $phpmailer );

echo $phpmailer->Hostname;

注意

使用到 global $current_site.

历史

添加于 版本: MU (WordPress 3.0.0)

源文件

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

/**
* Correct From host on outgoing mail to match the site domain
*
* @since MU
*/

function fix_phpmailer_messageid( $phpmailer ) {

$phpmailer->Hostname = get_current_site()->domain;

}

相关

wp-includes/class-phpmailer.php – the PHPMailer class file within WordPress core.

原文:http://codex.wordpress.org/Function_Reference/fix_phpmailer_messageid

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索