位置: 编程技术 - 正文

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)

  • 外部奖励与内部奖励
  • 需要进项税额转出的发票还用勾选吗
  • 生产企业进项税加计扣除
  • 售后维修收入怎么入账
  • 其他应收款账龄怎么算
  • 资产负债表的其他应付款怎么填列
  • 境内公司取得境外收入
  • 驾驶培训费可以报销吗
  • 事业编人员贷款
  • 多计提的工资怎么处理?
  • 银行收回客户误扣的费用怎么处理?
  • 来料加工账务处理方法
  • 固定资产本期折旧额与上期不一样
  • 提前还款罚息是多少
  • 安装工程劳务合同
  • 增值税发票作废有什么损失
  • 车辆保险车船税每年交多少
  • 享受小型微利企业标准
  • 电子汇款收入是什么意思
  • 跨年的发票可以补开吗
  • 实收资本不变说明了什么
  • 建筑企业分包工程的纳税人
  • 电脑怎么进入bios中文
  • 预计负债基本确定的概率区间
  • 苹果手机上传速度很慢
  • macos itunes
  • schedhlp.exe - schedhlp是什么进程 作用是什么
  • KB5004296无法安装,提示错误代码:0x800f0990的解决方法
  • rsmsink.exe - rsmsink是什么进程 有何作用
  • 计提劳务派遣人数怎么算
  • 进程 com surrogate
  • 一般纳税人企业注销流程
  • 笔记本通用音频驱动程序怎么修复
  • netsurf.exe - netsurf是什么进程 有什么用
  • redis网络模型 框架图
  • 其他货币资金明细账填写样本
  • 增值税按简易计价方式
  • 图像质量评价制度及质量评价方案
  • 企业购买财务软件算什么费用
  • 暂估成本的账务处理分录
  • css 宽度 自适应 占满
  • iis安装php环境
  • 购买低值易耗品的现金流属于什么
  • 报销差旅费用什么发票
  • 缴纳的印花税怎么入账
  • 应计入营业外支出的科目有
  • 小规模季度必须报税吗
  • 供货单位与开票单位不一致
  • 工会收支账务处理
  • 累计折旧怎么做账
  • 今年利润弥补以前年度亏损如何记账
  • 海关报关单位注销操作规程
  • 出口退税的会计处理例题
  • 制造费用属于费用性支出吗
  • sql server 2008使用教程
  • 贸易企业出口退税计算方法
  • sql命令语句
  • 企业在银行的信用卡
  • 公司购买的财产保险要交印花税吗
  • 应交税费应交印花税贷方余额
  • 银行对账单和回单有什么区别
  • 公司经营范围怎么填
  • window10注册表
  • centos建站教程
  • win8开始屏幕设置
  • windows1021h2更新
  • win8任务栏在底部不显示
  • win8电脑路由器网络受限怎么办
  • 怎么删除listview条目
  • unity shooter
  • 每天一篇文章锻炼口才的文章
  • Android调用系统的电话拨号程序
  • javascript基本语句
  • 发票怎样读入金税开票系统
  • 网上怎么申报地税
  • 中国税务社保缴费app下载
  • 税务稽查为什么不问证人
  • 新疆自治区国税局郑志全
  • 电信宽带绑定的手机号怎么解除绑定
  • 成都国税工勤人员待遇
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设