Código PHP:
Ver originalfunction envioEmail($form){
// antes debes iniciar tus variables y hacer tu conexion a la bd (si usas una)
/* DECLARAMOS NUESTRO OBJETO TIPO AJAX */
$miObjeto = new xajaxResponse();
$miObjeto->setCharEncoding('utf-8');
$usuario = $form["email"]; // del form tomo el mail destinario
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=utf-8\r\n";
$cuerpo = "Aqui va mi mensaje en html <br /> ";
//FUNCION DE PHP. (mail, asunto, cuerpo,..... "agregados")
mail($email,"el asunto de este mail " ,$cuerpo,$headers);
return $miObjeto;
}