PDA

View Full Version : Want to use mail() to send HTML page


dlowery
09-05-2002, 07:10 PM
I've found many suggestions/tutorials on the vagaries of mail() but none have included a way to simply send a HTML based page as the message. I sense that Mime type may have an effect!?

But my brain is still spinning from getting PHP to sport Title, Story, and Illustration from a mySQL database (working well, thanks)! I can't even think crokked today!

So, are there any recommendations on the HTML? So I can advise Website members of updates, etc. BTW, the list is short, so at this point I'm not worried about the volume capabilities of mail().

Thanks in advance.

D Lowery

May the source be with you! (Yes, I stole it):confused:

boywonder
09-06-2002, 01:47 AM
I looked up the answer (I think) here: http://www.php.net/manual/en/ref.mail.php

use these headers to send in html form

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

There is much good info over there...