submitted form contact, but didn't receive any email

i was tried in xampp localhost, i can submit form email and receive the email in my inbox email, but when i’m trying it in my website, it didn’t receive any email

this is my php code to send email by using form:

<?php
if (isset($_POST['submit']))
{
$emailTo = '[email protected]';

$name = addslashes(trim($_POST['Name']));
$clientEmail = addslashes(trim($_POST['Email']));
$subject = addslashes(trim($_POST['Subject']));
$message = addslashes(trim($_POST['Message']));

if($clientEmail !='' && $subject != '' && $message != '' && $name != '') {
    // Send email
    $headers = "From: " . $clientEmail . " <" . $clientEmail . ">" . "\\r\
" . "Reply-To: " . $clientEmail;
    mail($emailTo, $subject . " (Form www.nabilfawwaz.com)", $message, $headers);
}

echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";
}
?>

Sorry for bad english

Please see this article for more information on PHP mail: https://infinityfree.net/support/email/php-mail