Re: mail(): "\r\n" gives extra empty line between each line in Outlook
| From: | Christian Reiniger | Date: | Fri, 23 Mar 2001 13:06:31 +0000 |
| Subject: | Re: mail(): "\r\n" gives extra empty line between each line in Outlook | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45278@lists.php.net to get a copy of this message | ||
On Friday 23 March 2001 06:57, you wrote:
> Hi all,
>
> First I had a problem that text from a textarea form object passed to
> mail() ended up as a single line of text in MS Outlook.
> I changed the newlines to newlines _with_ carriage returns:
> strtr($mailbody, "\n", "\r\n");
Re-read the description of strtr. Hint:
> empty line between each line. (the "\r" alone ends up the same as
> "\r\n").
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has."
- Margaret Mead