Re: mail(): carriage return required??
| From: | Christian Reiniger | Date: | Fri, 23 Mar 2001 13:00:58 +0000 |
| Subject: | Re: mail(): carriage return required?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45276@lists.php.net to get a copy of this message | ||
On Friday 23 March 2001 01:49, you wrote:
> > Use \r\n for email line breaks.
>
> Should I write a function that replace any corrance of '\n' with '\r\n'
> in a string myself?
> Hard to believe that the PHP guys haven't encountered this before and
> didn't write some PHP function to do this for us, not?
Well,
str_replace('\n', '\r\n', $MyText);
isn't so tedious to type that you need an extra function for it I'd say...
--
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