Y si haces asi?
Código PHP:
Ver original<?php
$siteName = "SONARH";
$name = $_POST['fname'];
$mail = $_POST['email'];
$subject = $_POST['subj'];
$message = $_POST['mssg'];
$titulo = "";
$contenido = '<html>
<head>
<title></title>
</head>
<body>
"'.$name.'", "'.$mail.'", "'.$subject.'", "'.$message.'"
</body>
</html>';
$encabesado = "MINE-version: 1.0 \r\n";
$encabesado .= "content-type: text/html; charset=UTF-8\r\n";
$envio = mail($correo,$titulo,$contenido,$encabesado); if($envio == true){
echo "<script>alert('SE ENVIO EL EMAIL')</script>";
}else{
echo "<script>alert('NO SE ENVIO EL EMAIL')</script>";
}
?>