Forum Moderators: coopster
I am wanting to be able to send an html page to people on a mailing list.
I have set it up so it sends $mailing_template which sends an html page. Only, when it reaches the inbox it shows as straight html (un parsed) and not as the page.
How can I set it to send it as HTML and not straight HTML code please?
Using php.
Thanks
I sent an html email a while back and figured out how to do it by pulling one out of my junk mail and disecting it. If you do that you'll see the headers to use for multi-part mime and a character string that seperates the formats. It will basically look like this:
-header-
-character string-
-text formatted portion-
-character string-
-html formatted portion-
-character string-
William.
$mailheader = "From: $email\r\n";
$mailheader .= "Reply-To: $email\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
mail($to, $subject, $MESSAGE_BODY, $mailheader) or die ("Failure");
Hope this helps
Vevs
[edited by: coopster at 8:13 pm (utc) on Jan. 8, 2006]
[edit reason] no personal urls please TOS [webmasterworld.com] [/edit]