function.mb-send-mail.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 188 行

HTML
188
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Send encoded mail</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-regex-set-options.html">mb_regex_set_options</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-split.html">mb_split</a></div> <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.mb-send-mail" class="refentry"> <div class="refnamediv">  <h1 class="refname">mb_send_mail</h1>  <p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5)</p><p class="refpurpose"><span class="refname">mb_send_mail</span> &mdash; <span class="dc-title">Send encoded mail</span></p> </div>    <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>mb_send_mail</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$to</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$subject</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$message</tt></span>   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$additional_headers</tt></span>   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$additional_parameter</tt></span>  ]] )</div>  <p class="para rdfs-comment">   Sends email. Headers and messages are converted and encoded according   to the <a href="function.mb-language.html" class="function">mb_language()</a> setting. It&#039;s a wrapper function   for <a href="function.mail.html" class="function">mail()</a>, so see also <a href="function.mail.html" class="function">mail()</a> for details.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">to</tt></i></span>     <dd>      <p class="para">       The mail addresses being sent to. Multiple       recipients may be specified by putting a comma between each       address in <i><tt class="parameter">to</tt></i>.        This parameter is not automatically encoded.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">subject</tt></i></span>     <dd>      <p class="para">       The subject of the mail.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">message</tt></i></span>     <dd>      <p class="para">       The message of the mail.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">additional_headers</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">additional_headers</tt></i> is inserted at       the end of the header. This is typically used to add extra       headers.  Multiple extra headers are separated with a       newline (&quot;\n&quot;).      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">additional_parameter</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">additional_parameter</tt></i> is a MTA command line       parameter. It is useful when setting the correct Return-Path       header when using sendmail.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 changelog">  <h3 class="title">ChangeLog</h3>  <p class="para">   <table class="informaltable">    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Version</th>       <th colspan="1">Description</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">5.0.0</td>       <td colspan="1" rowspan="1" align="left">        The <i>Content-Type</i> and <i>Content-Transfer-Encoding</i>         headers may be redefined as of PHP 5.0.0. Before this time, the values defined by        <a href="function.mb-language.html" class="function">mb_language()</a> are always used.       </td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.mail.html" class="function" rel="rdfs-seeAlso">mail()</a></li>    <li class="member"><b>mb_encode_mimeheade()</b></li>    <li class="member"><a href="function.mb-language.html" class="function" rel="rdfs-seeAlso">mb_language()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-regex-set-options.html">mb_regex_set_options</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-split.html">mb_split</a></div> <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?