mail(): carriage return required??
| From: | Eelco de Vries | Date: | Fri, 23 Mar 2001 00:04:48 +0000 |
| Subject: | mail(): carriage return required?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45218@lists.php.net to get a copy of this message | ||
Hi,
I wrote a web based SMTP client using the mail() function. When the mail
form is submitted, I pass the content of the form's textarea (the mail body)
to the mail() function.
When I was testing the script, I wrote some text on different lines in the
form:
"this is line 1
this is line 2
this the 3rd
etc
etc"
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?
Regards;
Eelco.