!
也想出现在这里? 联系我们
广告位
当前位置:首页>开发>WordPress开发手册>WordPress函数手册>WordPress函数文档fix_phpmailer_messageid()

WordPress函数文档fix_phpmailer_messageid()

获取phpmailer发送的信息 描述 Correct From: host on outgoing emai…--由S9社区整理

获取phpmailer发送的信息

描述

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

1
2
3
4

/* ———————————-
* wordpress函数 kim收集
* ———————————- */

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

用法

<?php fix_phpmailer_messageid( $phpmailer ) ?>

参数

$phpmailer

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

默认值: None

示例

1
2
3
4
5

/* ———————————-
* wordpress函数 kim收集
* ———————————- */

fix_phpmailer_messageid( $phpmailer );

echo $phpmailer->Hostname;

注意

使用到 global $current_site.

历史

添加于 版本: MU (WordPress 3.0.0)

源文件

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

1
2
3
4
5
6
7
8
9
10
11

/* ———————————-
* wordpress函数 kim收集
* ———————————- */
/**
* 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

给TA打赏
共{{data.count}}人
人已打赏
WordPress函数手册

WordPress函数文档flush_rewrite_rules()

2023-6-16 19:39:04

WordPress函数手册

WordPress函数文档get_404_template()

2023-6-16 19:39:52

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:林沐阳 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索