Make a PHP form for a web page, the problem is that when I add the address of my domain ".com" it never comes to my inbox. I have done tests with my gmail and outlook account, even with a ".com.mx" account and with these I do not present the same problems, my mail accounts and hosting are in Godaddy. What is the error within my code? I hope you can help me. thanks
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IKTUM</title>
<link href="css/style1.css" rel="stylesheet">
<script type="text/javascript">
function Redireccionar(){
window.location='index.php';
}
setTimeout('Redireccionar()', 1000);
</script>
</head>
<body>
<div class="container">
<?php
if(isset($_POST['nombre'])&&($_POST['correo']!='')
&&($_POST['mensaje']!='')){
$nombre = $_POST['nombre'];
$correo = $_POST['correo'];
$mensaje = $_POST['mensaje'];
//direción de mi correo
$para = "[email protected]";
//Contenido del mensaje
$titulo = "Contacto ";
$contenido = '<html>
<head>
<title>' . $titulo . '</title>
</head>
<body>
<p>El visitante <strong>' . $nombre .
'</strong> te ha enviado el siguiente mensaje:</p>
<p>Mensaje: ' . $mensaje . ' <br><br> Puedes
ponerte en contacto al email: ' . $correo . '</p>
<p>Este mensaje ha sido generado desde la
página de iktum.com</p>
</body>
</html>';
$encabezado = "MINE-Version: 1.0\r\n";
$encabezado .= "Content-type: text/html; charset=UTF-8\r\n";
$encabezado .= "From: "Sitio web" \r\n";
$encabezado .= "Reply-To: \r\n";
$envio = mail($para,$titulo,$contenido,$encabezado);
if($envio == true){
}
else{
echo "<h1>Se ha presentado un error en el envío del
email</h1>";
}
}
else{
echo "<h1>Se ha presentado un error, completa los campos del
formulario</h1>";
}
?>
</div>
</body>
</html>