On Mon, 24 Mar 2003 18:51:47 +0800, Jason Wong wrote about "Re: [PHP] PHP
Send Mail Main headers." what the universal translator turned into this:

>On Monday 24 March 2003 18:35, Don Read wrote:
>> On 24-Mar-2003 Philip J. Newman wrote:
>> > $headers .= "MIME-Version: 1.0\r\n";
>> > $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
>> > $headers .= "From: ".$from_name." <".$from_address.">\r\n";
>> > $headers .= "Reply-To: ".$from_name." <".$from_address.">\r\n";
>> > $headers .= "X-Priority: 3\r\n";
>> > $headers .= "X-MSMail-Priority: Normal\r\n";
>> > $headers .= "X-Mailer: iCEx Networks HTML-Mailer v1.0";
>> >
>> > Is this about all i need to send a mail in PHP excluding the mail();
>>
>> More than enough.
>> Couple of thoughts ...
>>
>> Drop the X-Priority and X-MSMail-Priority. Those are the default values
>> and thus un-necessary.
>> Also the <crlf> is over kill; a simple \n will do just fine.
>
><CRLF> is not an overkill. That is the specs. Some MTAs (sendmail in 
>particular) will treat a single LF (\n) as a line termination as thus you can 
>get away with it. 

On unix machines you can do with just a linefeed, on CPM/DOS-based systems
(that is, DOS & Windows), you need CRLF...

Also, for compliance sakes ... you miss the date field ... and depending
on receiving server's setup, also a subject ... some servers require from,
to, subject, and date to be set as minimum ... Alot of mailservers I've
had to transfer through refuses to accept mail without the TO field.

Rene

-- 
Rene Brehmer

This message was written on 100% recycled spam.

Come see! My brand new site is now online!
http://www.metalbunny.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to