Espero te sirva:
Código HTML:
function sendemail($to, $from, $subject, $message){
$mensaje = "<html><style type='text/css'><!--body,td,th {font-family: Arial, Helvetica, sans-serif; font-size: 12px;}--></style><body bgcolor='#309280'>";
$mensaje .= $message;
$mensaje .= "</body></html>";
$headers= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $from";
// Envio en formato HTML
mail("$to","$subject","$mensaje","$headers");
}
Para usar-lo solo teneis que usar la función así:
sendemail($to, $from, $subject, $message) ;