From 5aeeb8abbf66eabbfb6a29e7d1dc8eb5edb545f4 Mon Sep 17 00:00:00 2001 From: Zak Greant Date: Sat, 7 Jul 2001 08:36:54 +0000 Subject: [PATCH] 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 --- functions/mail.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/functions/mail.xml b/functions/mail.xml index 8d5e6f97d4..1481619697 100644 --- a/functions/mail.xml +++ b/functions/mail.xml @@ -20,10 +20,10 @@ string to string subject string message - string + string additional_headers - string + string additional_parameters @@ -34,7 +34,13 @@ specified in message to the receiver specified in to. Multiple recipients can be specified by putting a comma between each address in - to. + to. Email with attachments and special + types of content can be sent using this function. This is + accomplished via MIME-encoding - for more information, see + http://www.zend.com/zend/spotlight/sendmimeemailpart1.php or + RFC 1896 (Visit http://www.rfc-editor.org/). mail returns TRUE 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 <birthday@php.net>\n"; -$headers .= "X-Sender: <birthday@php.net>\n"; +$headers .= "X-Sender: <birthday@php.net>\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "X-Priority: 1\n"; // Urgent message! $headers .= "Return-Path: <birthday@php.net>\n"; // Return path for errors