Multibyte String 函数
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程

mb_send_mail

(PHP 4 >= 4.0.6, PHP 5)

mb_send_mailSend encoded mail

说明

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

Sends email. Headers and messages are converted and encoded according to the mb_language() setting. It's a wrapper function for mail(), so see also mail() for details.

参数

to

The mail addresses being sent to. Multiple recipients may be specified by putting a comma between each address in to . This parameter is not automatically encoded.

subject

The subject of the mail.

message

The message of the mail.

additional_headers

additional_headers is inserted at the end of the header. This is typically used to add extra headers. Multiple extra headers are separated with a newline ("\n").

additional_parameter

additional_parameter is a MTA command line parameter. It is useful when setting the correct Return-Path header when using sendmail.

返回值

如果成功则返回 TRUE,失败则返回 FALSE

更新日志

版本 说明
5.0.0 The Content-Type and Content-Transfer-Encoding headers may be redefined as of PHP 5.0.0. Before this time, the values defined by mb_language() are always used.

参见


Multibyte String 函数
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程