Re: [PHP] Email Body

2003-10-29 Thread micro brew
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 long long

Re: [PHP] Email Body

2003-10-23 Thread Marek Kilimajer
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',

Re: [PHP] Email Body

2003-10-23 Thread Don Read
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?

[PHP] Email Body

2003-10-22 Thread micro brew
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

Re: [PHP] Email Body

2003-10-22 Thread Rolf Brusletto
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 =

Re: [PHP] Email Body

2003-10-22 Thread Rolf Brusletto
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

Re: [PHP] Email Body

2003-10-22 Thread John W. Holmes
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

[PHP] email body text extraction.

2002-02-19 Thread Athar Hameed
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

Re: [PHP] email body text extraction.

2002-02-19 Thread Bogdan Stancescu
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