From 44620890f3de8038c71d4c643a8db3805a665a45 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Sat, 18 May 2002 11:04:04 +0000 Subject: [PATCH] - Document latest Win32 mail() changes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@82632 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mail/functions/mail.xml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/reference/mail/functions/mail.xml b/reference/mail/functions/mail.xml index 57ce1a15c5..41ea0e0674 100644 --- a/reference/mail/functions/mail.xml +++ b/reference/mail/functions/mail.xml @@ -1,5 +1,5 @@ - + @@ -41,6 +41,23 @@ mail returns &true; if the mail was successfully accepted for delivery, &false; otherwise. + + + The Windows implementation of mail differs in many + ways from the Unix implementation. First, it doesn't use a local binary + for composing messages but only operates on direct sockets which means a + MTA is needed listening on a network socket (which + can either on the localhost or a remote machine). Second, the custom + headers like From:, Cc:, + Bcc: and Date: are not interpreted by the MTA + in the first place, but are parsed by PHP. + PHP < 4.3 only supported the Cc: + header element (and was case-sensitive). PHP >= 4.3 + supports all the mentioned header element and is no longer + case-sensitive. + + Sending mail. @@ -61,9 +78,7 @@ mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3"); You must use \r\n to seperate headers, although some Unix mail transfer agents may work with just a single newline - (\n). The Cc: header is case sensitive and must - be written as Cc: on Win32 systems. The Bcc: - header is also not supported on Win32 systems. + (\n).