mail.configuration.html

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

HTML
181
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Runtime Configuration</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="mail.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="mail.resources.html">Resource Types</a></div> <div class="up"><a href="mail.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="mail.configuration" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara">The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.</p> <p class="para"> <table border="5">  <caption><b>Mail configuration options</b></caption>  <colgroup>   <thead valign="middle">    <tr valign="middle">     <th colspan="1">Name</th>     <th colspan="1">Default</th>     <th colspan="1">Changeable</th>     <th colspan="1">Changelog</th>    </tr>   </thead>   <tbody valign="middle" class="tbody">    <tr valign="middle">     <td colspan="1" rowspan="1" align="left">SMTP</td>     <td colspan="1" rowspan="1" align="left">&quot;localhost&quot;</td>     <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>     <td class="empty">&nbsp;</td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left">smtp_port</td>     <td colspan="1" rowspan="1" align="left">&quot;25&quot;</td>     <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>     <td colspan="1" rowspan="1" align="left">Available since PHP 4.3.0.</td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left">sendmail_from</td>     <td colspan="1" rowspan="1" align="left">NULL</td>     <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>     <td class="empty">&nbsp;</td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left">sendmail_path</td>     <td colspan="1" rowspan="1" align="left">&quot;/usr/sbin/sendmail -t -i&quot;</td>     <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM</td>     <td class="empty">&nbsp;</td>    </tr>   </tbody>  </colgroup> </table> For further details and definitions of the PHP_INI_* constants, see the <a href="ini.html" class="xref">php.ini directives</a>. </p>  <p class="para">Here&#039;s a short explanation ofthe configuration directives.</p>  <p class="para"> <dl>  <dt id="ini.smtp">   <span class="term">    <i><tt class="parameter">SMTP</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Used under Windows only: host name or IP address of the SMTP server PHP     should use for mail sent with the <a href="function.mail.html" class="function">mail()</a> function.    </p>   </dd>  </dt>  <dt id="ini.smtp-port">   <span class="term">    <i><tt class="parameter">smtp_port</tt></i>    <a href="language.types.integer.html" class="type int">int</a>   </span>   <dd>    <p class="para">     Used under Windows only: Number of the port to connect to the server     specified with the <i>SMTP</i> setting when sending mail     with <a href="function.mail.html" class="function">mail()</a>; defaults to 25. Only available since     PHP 4.3.0.    </p>   </dd>  </dt>  <dt id="ini.sendmail-from">   <span class="term">    <i><tt class="parameter">sendmail_from</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Which &quot;From:&quot; mail address should be used in mail sent from     PHP under Windows.     This directive also sets the &quot;Return-Path:&quot; header.    </p>   </dd>  </dt>  <dt id="ini.sendmail-path">   <span class="term">    <i><tt class="parameter">sendmail_path</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Where the <strong class="command">sendmail</strong> program can be found,     usually <var class="filename">/usr/sbin/sendmail</var> or     <var class="filename">/usr/lib/sendmail</var>.     <strong class="command">configure</strong> does an honest attempt of     locating this one for you and set a default, but if it fails,     you can set it here.    </p>    <p class="para">     Systems not using sendmail should set this directive to the     sendmail wrapper/replacement their mail system offers, if any.     For example, <a href="http://www.qmail.org/" class="link external">&raquo; Qmail</a>     users can normally set it to     <var class="filename">/var/qmail/bin/sendmail</var> or <var class="filename">     /var/qmail/bin/qmail-inject</var>.    </p>    <p class="para">     <strong class="command">qmail-inject</strong> does not require any option to     process mail correctly.    </p>    <p class="para">     This directive works also under Windows. If set, <var class="varname">smtp</var>,     <var class="varname">smtp_port</var> and <var class="varname">sendmail_from</var> are     ignored and the specified command is executed.    </p>   </dd>  </dt> </dl> </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mail.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="mail.resources.html">Resource Types</a></div> <div class="up"><a href="mail.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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