This is the code I use to send HTML e-mail's. Well, this is actually an old version of my script, so it may need to be restructured slightly, depends on how neat you like your code... haha.
$from = "you@yourdomain.com";
$recipient = $email;
$subject = "Your Subject Can Go Here.";
$entete = "Reply-to: $from\n";
$entete .= "From:$from\n";
$entete .= "Date: ".date("l j F Y, G:i")."\n";
$entete .= "MIME-Version: 1.0 \n"
."Content-Type: text/html;\n";
$texte_html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK href="http://www.you.com/global/styles.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD><BODY bottomMargin=0 vLink=#ffffff aLink=#ffffff link=#ffffff leftMargin=0 topMargin=0 rightMargin=0><TABLE class=borders height="100%" cellSpacing=0 width=740 align=center border=0><TBODY><TR vAlign=top align=left><TD height=110> </TD></TR><TR><TD class=divider height=40></TD></TR><TR><TD class=left vAlign=top align=middle><TABLE class=contentzone cellSpacing=0 cellPadding=5 width=500 border=0><TBODY><TR><TD><P><B>Body of the e-mail.</P></TD></TR></TBODY></TABLE><BR></TD></TR><TR vAlign=top align=right><TD class=footer height=40></TD></TR></TBODY></TABLE></BODY></HTML>';
if(!mail($recipient,$subject,$texte_html, $entete))
{
echo 'E-mail Not Sent.';
}
Basically just get the code you want for your content, and paste it in as the $texte_html variable. Don't forget to escape any single quotes you have in your code. I suppose you could have your e-mail on your server and just use the get_file_content() function to assign the code to the variable. That could work too, all depends on what you want. Again, I appologize for the structure, it's old code :eek: