Re: Email Body
| From: | Rolf Brusletto | Date: | Thu, 23 Oct 2003 00:00:14 +0000 |
| Subject: | Re: Email Body | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167193@lists.php.net to get a copy of this message | ||
yo -
\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 PriceCan 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