Be more specific about what you are trying to do.
Essentially, all you need to do to send html formatted email is to do something like this
$sendto="some_email@somedomain.com";
$mailbody="<html><body>Some html formatted output</body></html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Someone <user@somedomain.com>\r\n";
mail($sendto ,"This is the mail subject line",$mailbody,$headers);
-hth