cvs: phpdoc /en/functions mail.xml

From: Date: Sat, 07 Jul 2001 08:36:55 +0000
Subject: cvs: phpdoc /en/functions mail.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335891@lists.php.net to get a copy of this message
zak Sat Jul 7 04:36:55 2001 EDT Modified files: /phpdoc/en/functions mail.xml Log: 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. :) Index: phpdoc/en/functions/mail.xml diff -u phpdoc/en/functions/mail.xml:1.21 phpdoc/en/functions/mail.xml:1.22 --- phpdoc/en/functions/mail.xml:1.21 Sat Jun 23 16:10:51 2001 +++ phpdoc/en/functions/mail.xml Sat Jul 7 04:36:54 2001 @@ -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 .= "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

« previous php.doc (#969335891) next »