Re: correct email formatting
| From: | Thomas Deliduka | Date: | Thu, 28 Sep 2000 04:37:15 +0000 |
| Subject: | Re: correct email formatting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17855@lists.php.net to get a copy of this message | ||
Yup, \r is on the Mac.
But hey, I read somewhere that it's a little more compatible if you put \n\r
in the email() function. So that's what I do, I have found no adverse
affects on Mac or PC.
On 9/27/00 11:47 PM this was written:
>> I'm on a FreeBSD box both for local development
>> and for live pages.
>>
>> Does splitting on \n\r seem likely?
>>
>> Sorry, got no clue when it comes to linefeed,
>> new lines, carrige returns, ASCI, and all that :)
>
> Dear oh dear, what _are_ they teaching the young these days ;-(
>
>> I know I could simply test it, but I was after
>> something more reliable than "it works for this
>> email sender, on this server, today" kinda thing.
>>
>> Justin French
>
> FreeBSD is *nix so your separator between header and body should be
> allee same like mine, \n\n. But I'd suggest you test for all possible
> configurations and convert them to a single format, just to be on the safe
> side. Your possiblities are:
>
> *nix - \n\n
> DOS - \r\n\r\n
> Mac - \r\r (I think, check this out seeing you are using a PPC)
>
> so you'd want to change say
> any \r\n to \n
> Any \r to \n
>
> and then search for \n\n as the separator. That should work on most
> anything except something that uses another EOL combination :-)
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/