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. 

Stay with the spec and use <CRLF> (\r\n).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Don't say "yes" until I finish talking.
                -- Darryl F. Zanuck
*/


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

Reply via email to