位置: 编程技术 - 正文

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)

  • 企业取得被投资单位的长期股权可以享有
  • 如何计算转让金融商品盘亏应交增值税
  • 保险公司报销修手机
  • 辞退补偿金按照什么工资算
  • 广告公司个人所得税几个点
  • 预提费用在资产负债表哪个科目
  • 哪些企业需要纳税
  • 三栏式明细分类账的账页格式适用于
  • 企业年金的税收政策
  • 记账凭证是否要记账
  • 凭票报销交通费补贴
  • 通用机打发票上面为什么不体现税率
  • 空调可以开专票抵扣吗
  • 税控盘维护费280怎么交
  • 加油发票税号错误怎么补救
  • 制冷设备增值税税率
  • 个人承担的社保计入管理费用吗
  • 国资委是什么
  • 增值税发票总金额是含税金额吗
  • 卖护肤品赚钱吗
  • 短期投资算债权吗
  • 1697510742
  • 开启共享文件夹
  • 发票金额大于实付金额,要怎么入账
  • mac怎么把通知栏固定
  • 行政单位如何将资产年报导入财报里
  • php对称加密算法实验报告
  • 重装系统前需要注意什么
  • reg.dll是什么
  • phppost提交json
  • PHP:imagestringup()的用法_GD库图像处理函数
  • 售后租回交易的实质是什么
  • 营业外收支的内容
  • 销售货物代垫的运费会计分录
  • 公司借款利息可以用对公户转账吗
  • 面试官:一千万是真的吗
  • phpsql防注入代码
  • 餐费发票怎么做账务处理
  • 10qps是多少并发
  • yolo系列的优缺点
  • 财务费用汇兑损益在借方还是贷方
  • 处置固定资产开发票
  • 个人终止投资经营的情形
  • 退休认证在网上怎么操作
  • python中input转换
  • mysql的简单操作
  • 子公司能吸收合并吗
  • 社会团体会费票据查询
  • 国际货运代理需要什么样的人才
  • 解决问题
  • 企业所得税和个人所得税怎么算
  • 企业所得税实施条例第22条
  • 出口货物没有进项发票用什么平台申报
  • 购买二手车后
  • 简易计税开具的发票取得的进项可以抵扣嘛
  • 劳务派遣公司主营业务成本是什么
  • 生育保险基金的筹集原则是
  • 更正申报所得税汇算清缴
  • 纳税人财务核算内容包括
  • 材料暂估分录
  • 如何对会计感兴趣
  • SQLSERVER Pager store procedure分页存储过程
  • xp开始菜单没反应
  • win7 显示日期
  • linux如何装
  • win7系统无线网络
  • win7打开文件提示用户没有访问权限怎么办
  • 浮动浮动
  • Android中的数据存储方式有五种,分别是
  • android图像处理
  • Node.js中HTTP模块与事件模块详解
  • 粒子form
  • js怎么写java代码
  • linux 查找后缀名文件
  • javascriptz
  • javascript playground
  • 国税周末有值班的吗
  • 你家预收租金到哪里去了
  • 契税和耕地占用税由谁负责征收
  • 淄博市地方税务局
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设