RE: [PHP] mail(): carriage return required??
| From: | Eelco de Vries | Date: | Fri, 23 Mar 2001 00:49:27 +0000 |
| Subject: | RE: [PHP] mail(): carriage return required?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45225@lists.php.net to get a copy of this message | ||
> > I read the mail fine in my hotmail.com account, but when I read
> that same
> > mail in my MS Outlook client the mail is one long line of text:
> > "this is line 1 this is line 2 this the 3rd etc etc"
> >
> > I understand from this difference in layout that the 'carriage
> return' is
> > required. Is there a function that adds a 'carriage return' after every
> > 'newline' found in a string? Or is this another problem?
>
> 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?
Cheers;
Eelco.