\n should work, but it depends on which type of quotes you use... see the following..
$content = 'this is the first line\n this is the second line\n this is the third line';
would return
this is the first line\n this is the second line\n this is the third line
as opposed to
$content = "this is the first line\n this is the second line\n this is the third line";
which would return
this is the first line this is the second line this is the third line
As for the formatting... I haven't been able to format a text email perfectly myself..
Rolf Brusletto http://www.phpExamples.net
micro brew wrote:
I am sending an email using mail() and it works fine. But the formatting of the body of the email is wrong. I want to format part of it in columns sort of like
this:
Name Quantity Price
Can this be done neatly without using an html email?
Also what is the trick to making line returns display properly in the email client? I've tried using \r\n with no luck. I also tried \n. The characters show in the email but no line breaks. Any suggestions?
TIA,
Mike
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php