Basically I realized that if my send-to address has numbers on it, the mail isn't sent!
Here's the example code:
$server = 'info@mywebsitehas3number.com';
$from = $contact_name;
$body = '
<html>
<head>
</head>
<body>
blablablabla
</body>
</html>
';
$headers = "From: " .$contact_name. " <" .$contact_email. ">" . "\r\n" . "Reply-To: " .$contact_email. "\r\n";
$headers .= "Content-Type: text/html; charset=utf-8";
$headers .= "<meta charset='utf-8' />";
mail($server, $contact_subject, $body, $headers);
As you can see, my server address has a number on it, well, because basically my website address contains a number. When sending, the inbox won't receive anything. If I send it to my personal e-mail which has no number, I'll receive it.
I even have another gmail account with a number on the address, e.g. (address4@gmail.com) and it also doesn't work!
How can I make this work?
Thanks