Added information to the mail() function on MIME-encoded email. Put the

info near the top of the writeup in an attempt to reduce the flow of ill-placed
manual notes on the subject. :)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50735 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Zak Greant 2001-07-07 08:36:54 +00:00
parent 99b276b2cd
commit 5aeeb8abbf

View file

@ -20,10 +20,10 @@
<paramdef>string <parameter>to</parameter></paramdef>
<paramdef>string <parameter>subject</parameter></paramdef>
<paramdef>string <parameter>message</parameter></paramdef>
<paramdef>string
<paramdef>string
<parameter><optional>additional_headers</optional></parameter>
</paramdef>
<paramdef>string
<paramdef>string
<parameter><optional>additional_parameters</optional>
</parameter>
</paramdef>
@ -34,7 +34,13 @@
specified in <parameter>message</parameter> to the receiver
specified in <parameter>to</parameter>. Multiple recipients can
be specified by putting a comma between each address in
<parameter>to</parameter>.
<parameter>to</parameter>. Email with attachments and special
types of content can be sent using this function. This is
accomplished via MIME-encoding - for more information, see
<ulink url="http://www.zend.com/zend/spotlight/sendmimeemailpart1.php"
>http://www.zend.com/zend/spotlight/sendmimeemailpart1.php</ulink> or
RFC 1896 (Visit <ulink url="http://www.rfc-editor.org/"
>http://www.rfc-editor.org/</ulink>).
</simpara>
<para>
<function>mail</function> returns <literal>TRUE</literal> if the mail
@ -112,14 +118,14 @@ $message .= "Day \t\tMonth \t\tYear\n";
$message .= "3rd \t\tAug \t\t1970\n";
$message .= "17rd\t\tAug \t\t1973\n";
/* you can add a stock signature */
/* you can add a stock signature */
$message .= "--\r\n"; //Signature delimiter
$message .= "Birthday reminder copylefted by public domain";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers .= "From: Birthday Reminder &lt;birthday@php.net>\n";
$headers .= "X-Sender: &lt;birthday@php.net>\n";
$headers .= "X-Sender: &lt;birthday@php.net>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: &lt;birthday@php.net>\n"; // Return path for errors