位置: 编程技术 - 正文

PHP:mb_send_mail()的用法_mbstring函数

编辑:rootadmin
mb_send_mail

推荐整理分享PHP:mb_send_mail()的用法_mbstring函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4 >= 4.0.6, PHP 5)

mb_send_mail — 发送编码过的邮件

说明 bool mb_send_mail ( string $to , string $subject , string $message [, string $additional_headers = NULL [, string $additional_parameter = NULL ]] )

发送邮件。邮件头和内容根据 mb_language() 设置来转换编码。 这是 mail() 的一个包装器函数,所以详情参见 mail()。

参数

to

被发送到该邮件地址。可通过逗号分隔地址的 to 来指定多个收件人。 该参数不会被自动编码。

subject

邮件标题。

message

邮件消息。

additional_headers(可选)

String to be inserted at the end of the email header.

This is typically used to add extra headers (From, Cc, and Bcc). Multiple extra headers should be separated with a CRLF (rn). Validate parameter not to be injected unwanted headers by attackers.

Note: PHP:mb_send_mail()的用法_mbstring函数

When sending mail, the mail must contain a From header. This can be set with the additional_headers parameter, or a default can be set in php.ini.

Failing to do this will result in an error message similar to Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing. The From header sets also Return-Path under Windows.

Note:

If messages are not received, try using a LF (n) only. Some Unix mail transfer agents (most notably »qmail) replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with »RFC .

additional_parameter

additional_parameter 是一个 MTA 命令行参数。 在使用 sendmail 时对设置正确的返回路径头很有帮助。

This parameter is escaped by escapeshellcmd() internally to prevent command execution. escapeshellcmd() prevents command execution, but allows to add addtional parameters. For security reason, this parameter should be validated.

Since escapeshellcmd() is applied automatically, some characters that are allowed as email addresses by internet RFCs cannot be used. Programs that are required to use these characters mail() cannot be used.

The user that the webserver runs as should be added as a trusted user to the sendmail configuration to prevent a &#;X-Warning&#; header from being added to the message when the envelope sender (-f) is set using this method. For sendmail users, this file is /etc/mail/trusted-users.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

更新日志

版本 说明 5.0.0 自 PHP 5.0.0 起可以重新定义 Content-Type 和 Content-Transfer-Encoding 头。 在此之前,总是使用 mb_language() 定义的值。

参见

mail() - 发送邮件 mb_encode_mimeheader() - 为 MIME 头编码字符串 mb_language() - 设置/获取当前的语言

PHP:mb_strcut()的用法_mbstring函数 mb_strcut(PHP4=4.0.6,PHP5)mb_strcut获取字符的一部分说明stringmb_strcut(string$str,int$start[,int$length=NULL[,string$encoding=mb_internal_encoding()]])mb_strcut()和mb_substr()类似,都

PHP:mb_preferred_mime_name()的用法_mbstring函数 mb_preferred_mime_name(PHP4=4.0.6,PHP5)mb_preferred_mime_name获取MIME字符串说明stringmb_preferred_mime_name(string$encoding)获取指定编码的MIME字符string。参数encoding要检查的字

PHP:mb_output_handler()的用法_mbstring函数 mb_output_handler(PHP4=4.0.6,PHP5)mb_output_handler在输出缓冲中转换字符编码的回调函数说明stringmb_output_handler(string$contents,int$status)mb_output_handler()是一个ob_start()回

标签: PHP:mb_send_mail()的用法_mbstring函数

本文链接地址:https://www.jiuchutong.com/biancheng/278608.html 转载请保留说明!

上一篇:PHP:mb_split()的用法_mbstring函数(php-ml)

下一篇:PHP:mb_strcut()的用法_mbstring函数(php中strcmp)

  • 安徽增值税发票勾选认证流程
  • 山东省增值税发票勾选认证平台
  • 房产税税额怎么算
  • 税前弥补亏损是净利润吗
  • 耕地占用税计入无形资产吗
  • 完工产品成本计入什么科目
  • 待认证进项税额是什么情况下用的
  • 工程附加税怎么计算
  • 番茄开发票属于蔬菜吗
  • 分公司以前年度能弥补亏损吗
  • 流动资产增幅
  • 分类账和明细账平行登记规则
  • 债券的投资收益率
  • 飞机票改签费用怎么算1000块
  • 申报抵扣了不做账怎么处理?
  • 购入厂房时缴的土地增值税如何入账?
  • 外购的货物用于集体福利是销售吗
  • 印花税漏报了要罚款吗
  • 买了税控盘还需要买打印机吗
  • 虚开增值税发票不能忽略的三个点!
  • 民间非营利组织有哪些
  • 物流公司承担货物损失赔偿如何写会计分录
  • 进项税额加计抵减怎么做分录
  • 金蝶迷你版不能期末结账怎么办
  • 间接费用是什么费用
  • 招投标公司需要什么条件
  • 付给他人押金的会计分录
  • 应缴纳消费税会增加吗
  • 莱辛巴赫瀑布在瑞士哪里
  • yii2框架结构
  • php实现页面浏览量
  • 使用灭火器时要对准火焰的什么部位喷射
  • 酒店押金的账务处理
  • 工程前期费用是什么意思
  • 应收利息的会计处理方法
  • 提取法定盈余公积的公式
  • 通过MySQL日志实时查看执行语句以及更新日志的教程
  • 织梦是啥
  • 财务费用利息收入为什么是借方负数
  • 工程款增值税专用发票需要写工程名称吗
  • 贸易公司平价销售怎么样
  • 会计中劳保用品是什么
  • 施工审图费计入什么科目
  • 主营业务收入如何做分录
  • 固定资产发票怎么处理
  • 工程结算和工程竣工决算的区别
  • 仲裁期间公司发工资了怎么办
  • 企业所得税预缴2‰
  • 利润表增加,资产负债表减少怎么回事
  • 凭证填制的标准要求
  • 销售废旧物资是否缴税 如何账务处理
  • FreeBSD 6.2-RELEASE下载
  • 怎么做windows
  • win8什么时候停止更新
  • ubuntu系统虚拟机安装教程
  • 微软官方解决升级问题
  • linux主要充当什么样的服务角色
  • win10 edge浏览器
  • win10系统如何创建家庭组
  • 批处理文件.bat
  • 什么叫懒加载
  • bash 字符串操作
  • css的reset
  • unity ui图层
  • unity如何成一组
  • js设置颜色代码
  • angular.js
  • unity 面向对象
  • js获取宽高
  • mvc使用
  • listview报错
  • 国家税务局总局官网
  • 地税税号查询系统
  • 税控盘登录密码和口令
  • 技术咨询服务费税率
  • 商业银行税务稽查重点
  • 免税企业可以收增值税专票吗
  • 外汇业务税务备案
  • 北医三院预约号最晚几点取
  • 道路坡度最大限度不超过多少度
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设