Not getting emails from the site on mail.ru?

Wrote a PHP handler for the form. So emails from Google emails come without problems, and on mail.ru why not come and spam no email address work. What could be the reason?

/*****form submission*****/
 $('[data-submit]').on('click', function(e){
e.preventDefault();
$(this).parent('form').submit();
})
$.validator.addMethod(
"regex",
 function(value, element, regexp) {
 var re = new RegExp(regexp);
 return this.optional(element) || re.test(value);
},
 "Please check your data"
);
 valEl function(el){

el.validate({
rules:{
Phone:{
required:true,
 regex: '^([\+]+)*[0-9\x20\x28\x29\-]{5,20}$'
},
Name:{
required:true
},
Email:{
required:true,
email:true
},
Message:{
required:true
}
},
messages:{
Phone:{
 required:'required Field',
 regex:'your Phone may contain symbols + - ()'
},
Name:{
 required:'required Field'
},
Email:{
 required:'required Field',
 email:'Invalid format E-mail'
},
Message:{
 required:'required Field'
}
},
 submitHandler: function (form) {
$('#loader').fadeIn();
 var $form = $(form);
 var $formId = $(form).attr('data-id');
switch($formId){
case'goToNewPage':
$.ajax({
 type: 'POST',
 url: $form.attr('action'),
 data: $form.serialize(),
})
 .always(function (response) {
 //link to the thank you page redirect
location.href='https://wayup.in/lm/landing-page-marathon/success';
 //send goals in Y. the Metric and Google Analytics
 ga('send', 'event', 'masterklass7', 'register');
yaCounter27714603.reachGoal('lm17lead');
});
break;
case'popupResult':
$.ajax({
 type: 'POST',
 url: $form.attr('action'),
 data: $form.serialize(),
})
 .always(function (response) {
 setTimeout(function (){
$('#loader').fadeOut();
$('.modal').fadeOut();
$('.modal-backdrop').fadeOut();
},800);
 setTimeout(function (){
$('#overlay').fadeIn();
$form.trigger('reset');
 //line to allegiane goals in Y. the Metric and Google Analytics
},1100);
 $('#overlay').on('click', function(e) {
$('#overlay').fadeOut();
$('.modal-open').css({
 'overflow': 'inherit',
 'padding-right' : '0'
});
});

});
break;
}
 return false;
}
})
};

 $('.js-form').each(function() {
valEl($(this));
});
 $('[data-scroll]').on('click', function(){
 $('html, body').animate({
 scrollTop: $( $.attr(this, 'data-scroll') ).offset().top
 }, 2000);
event.preventDefault();
});

}); // and ready


<?php
header("Content-Type: text/html; charset=utf-8");
$name = htmlspecialchars($_POST["Name"]);
$tel = htmlspecialchars($_POST["Phone"]);
$select = htmlspecialchars($_POST["Type-booking"]);
$textarea = htmlspecialchars($_POST["Message"]);


$refferer = getenv('HTTP_REFERER');
$date=date("d.m.y"); // the number.a month.year 
$time=date("H:i"); // hours:minutes:seconds 
$myemail = "matchpoint-club@mail.ru";

$tema = "New order";
$message_to_myemail = "Dear Administrator, You have received a new order from the client:
<br--><br>
Name: $name<br>
Telephone: $tel<br>
Type of reservation: $select<br>
Message: $textarea<br>
Source (link): $refferer
";

mail($myemail, $tema, $message_to_myemail, "From: MATCHPOINT <matchpoint-club@mail.ru> \r\n Reply-To: MATCHPOINT \r\n"."MIME-Version: 1.0\r\n"."Content-type: text/html; charset=utf-8\r\n" );


$tema = "Your order";
$message_to_myemail = "Thanks for your order! Our managers will call You soon";
$myemail = $email;
mail($myemail, $tema, $message_to_myemail, "From: MATCHPOINT <matchpoint-club@mail.ru> \r\n Reply-To: MATCHPOINT \r\n"."MIME-Version: 1.0\r\n"."Content-type: text/html; charset=utf-8\r\n" );


?></matchpoint-club@mail.ru></matchpoint-club@mail.ru>
June 8th 19 at 17:26
4 answers
June 8th 19 at 17:28
Probably because there are html and insert in the settings of google mail checking is disabled and no mail.
June 8th 19 at 17:30
You are actually trying to send email with fake address, substituting the address of the sender matchpoint-club@mail.ru. Use as the sender address from the domain's own servers. If necessary, you can make boxes for your domain to biz.mail.ru or pdd.yandex.ru.
June 8th 19 at 17:32
1. Check SMTP . Should be like this
$mail->Host = 'smtp.mail.ru';
2. Check the port , I have this
$mail->Port = 465;

Ideally, the throw handler code . It will be easier to understand what's wrong with you )
Added code to the question - Greyson73 commented on June 8th 19 at 17:35
June 8th 19 at 17:34
Hostings often do not like mail.ru and don't send them letters, such as the beget

Find more questions by tags JavaScriptE-mailWeb DevelopmentHTMLPHP