Marek,
Thanks for the tip. str_pad() worked like a charm.
I've never had a text email look so nice. Thanks
again. :)
Mike
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> I use str_pad() for this, it can handle strings that
> vary in length much
> better then tabs:
>
> tab way:
> echo "lon
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 e
I use str_pad() for this, it can handle strings that vary in length much
better then tabs:
tab way:
echo "long long name\t1000\t200.00\n";
echo "name\t10\t2.00\n";
output:
long long name 1000200.00
name10 2.00
str_pad way:
echo str_pad('long long name', 20,' ').
str_pad('1000',
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?
\t is a tab. You can use
didn't mention this before, but the difference between the two examples
if you hadn't noticed already is that the first is single quoted, and
the second, double quoted.
Rolf
micro brew wrote:
I am sending an email using mail() and it works fine.
But the formatting of the body of the email is
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 =
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 ret
E-mail is formatted just like HTTP messages - just split it in two after
the first \r\n\r\n and the first part is the header and the rest is the
body. You'll have to look for a line starting with "Subject:" in the
header and store the second part. You'll have a small problem if you
expect to a
I want to check for new emails (with a specific subject) and extract the
message body. This message body will be used to update specific parts of my
website. Any ideas?
Many thanks in advance.
Regards.
Athar Hameed
[EMAIL PROTECTED]
P.S. I would like to meet other PHP programmers in Islamabad,
9 matches
Mail list logo