code:
// Headers so we can have HTML encoded emails
$headers = "From: $fromName <$email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html";
// Check to see if the mail was sent
if(mail($to,"Email Form",$message,$headers)) {
The above is taken from my mail script. $to comtains the email address, $Message contains the actual message and the headers part is pretty self explanitory.
Hope that helps