Re: [PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Rabin Vincent
On 6/2/06, Tom Chubb <[EMAIL PROTECTED]> wrote: What I meant is say a page outputs an HTML table eg: [snipped] But I want to get that code into the $message variable. I have written many mail scripts before it's just getting the data into the variable. Should I be using something like CURL?

Re: [PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Tom Chubb
;; > > $headers = "From: [EMAIL PROTECTED]" . > "Reply-To: [EMAIL PROTECTED]"; > > //send email > mail($mail_to, $subject, $message, $headers); > ?> > > > HTH, > > Mark Cain > > - Original Message ----- > From: "Tom Chubb"

Re: [PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Tom Chubb
Mark Cain - Original Message - From: "Tom Chubb" <[EMAIL PROTECTED]> To: "[php] PHP General List" Sent: Friday, June 02, 2006 10:59 AM Subject: [PHP] HTML Mail script reading text from MySQL >I can't work out how to load the text from a recordset resul

[PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Tom Chubb
I can't work out how to load the text from a recordset result into a variable for sending using mail in a script. I have a script which creates a dynamic table then I want to load the table's HTML into a variable which will be echoed in the mail function. I can't work out how to do this. I've trie