[PHP] line breaks in email text messages

2004-09-13 Thread Michael Collins
How do I preserve line breaks in the body of an email message? The 
email message is plain text and I simply want to have a return 
included between each element entered into a form. I have used \n or 
\r\n (since this is a Windows server) to no avail. The email message 
I get back has all the data, but no line breaks. Any hints?

$emailbody = 'Sent by: '.$_POST['name'];
$emailbody .= \nEmail: .$email_from;
if(isset($_POST['company'])){
$emailbody .= \nCompany: .$_POST['company'];
}
if(isset($_POST['address'])){
$emailbody .= \nAddress: .$_POST['address'];
}
... etc ...
mail($email_to,$email_subject,$emailbody,$header)
--
Michael
__
||| Michael Collins
||| Kuwago Inc
||| Singapore and Seattle USA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] line breaks in email text messages

2004-09-13 Thread Michael Collins
At 9:11 AM +0800 9/14/04, Michael Collins wrote:
How do I preserve line breaks in the body of an email message?

Nevermind got it figured out. sorry for the extra bandwidth
--
Michael
__
||| Michael Collins
||| Kuwago Inc
||| Singapore and Seattle USA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php