Try this example -- I use it in my scripts.
-Mark
$receipt2 = "any html code here";
$nonHTMLversion = "any text version of email here";
//email stuff goes here: **********************************************************
$mail_recipient = "your@email";
$fullfillment = "another@email";
$mail_subject = "Email Subject";
$mail_header = "From: $b_first $b_last.<$their_email>\n";
/ If you want to send html mail, uncomment the following line */
$mail_header .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
$mail_header .= "cc:$b_email,$fullfillment\n"; // CC to
$receipt = "<html><HEAD><TITLE>Order</TITLE><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\"><LINK REL=\"stylesheet\" HREF=\"$VDG_CFG->HTTP_home/vdg.css\" TYPE=\"TEXT/CSS\"></HEAD><BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\" LEFTMARGIN=\"10\" TOPMARGIN=\"10\" MARGINWIDTH=\"10\" MARGINHEIGHT=\"10\"><P><IMG SRC=\"$VDG_CFG->ROOT_URL/stock/Logo.gif\"><BR><BR><FONT SIZE=\"4\">Order from $VDG_CFG->storename </FONT><P>".$receipt2."<P></BODY></HTML>";
$nonHTMLversion .= "\n -->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
$mail_message = $nonHTMLversion.$receipt;
mail($mail_recipient,$mail_subject,$mail_message,$mail_header);
//email stuff goes here: ************************************************************