I'm having problems on the company's registration page where we are not receiving the contact email. I created a simple page to test without taking the air to the main page. I realized that only when sending to emails of the domain we did not receive, however when I send to my gmail I usually receive (I tried the actual page and I had the same result).
I've already been through something similar with a linux shell, I've been able to resolve using another send mode in the command syntax in the shell.
Follow the code of the page I created:
<?php
$nome=$_POST['nome'];
$email=$_POST['email'];
$assunto=$_POST['assunto'];
$mensagem=$_POST['mensagem'];
?>
<?php
$to = "[email protected]";
$subject = "$assunto";
$message = "<strong>Nome:</strong>$nome<br /><br /><strong>Email:</strong>$email<br /><br /><strong>Assunto:</strong>$assunto<br /><br /><strong>Mensagem:</strong>$mensagem";
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "From: $email\r\n";
mail ($to,$subject,$message,$header);
echo "Mensagem enviada!";
?>