Re: Email Body
| From: | Don Read | Date: | Thu, 23 Oct 2003 16:01:33 +0000 |
| Subject: | Re: Email Body | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167306@lists.php.net to get a copy of this message | ||
On 22-Oct-2003 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?
>
sprintf("%-25 %2d %9.2f\n",
$name, $qty, $price);
> 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?
>
double-quotes around your string?
Regards,
--
Don Read dread@ispwest.com
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.