contactform don´t work

Hello, how are you
in contactform I put the email to send, the message sent appears, but I still don’t receive it

contactform.php

<?php
 // configuration
 
$email_it_to = "your_own_email_address@some_domain.com";

$error_message = "Please complete the form first";

$rnd=$_POST['rnd'];
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$body=$_POST['body'];

  
if(!isset($rnd) || !isset($name) || !isset($email) || !isset($subject) || !isset($body)) {
	echo $error_message;
    die();
}


$subject = stripslashes($subject);
$email_from = $email;

$email_message = "Message submitted by '".stripslashes($name)."', email:".$email_from;
$email_message .=" on ".date("d/m/Y")."\n\n";
$email_message .= stripslashes($body);
$email_message .="\n\n";

// Always set content-type when sending HTML email


$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8". "\r\n";
$headers .= 'From: '.stripslashes($name);

mail($email_it_to,$subject,$email_message,$headers);



?>

Unfortunately this one will be tricky to debug, because there a thousand (and one) different reasons that emails may not reach their destination.

If you’re absolutely sure that you changed the first line ($email_it_to) to a correct email address, and that it didn’t go to your email’s spam folder, then you will want to contact your web hosting company for investigation.

Your code snippet also doesn’t check the mail() call for success. It would return false upon failure. I don’t see any “message sent” indicator in your code, so it’s impossible to determine if the message was actually sent, and any failures would be ignored.