I send messages through the mail () function. It is sent to the mail along with my headers, here it is:

Received: from s35.h.mchost.ru ([178.208.83.42]:39409) by mx178.mail.ru with esmtp (envelope-from <a260827_1@s35.h.mchost.ru>) id 1gXjY4-0000Ma-8c for arkadii007@list.ru; Fri, 14 Dec 2018 12:14:20 +0300 

I tried after the headers to write "-f $ from", so that at least the host does not burn. ANYTHING How to remove this Received from the service header? Logs on LAN, it does not add, then something with the host? Here is the code:

 if(count($_POST) > 1){ $from = strval($_POST['from']); $to = strval($_POST['to']); $subject = strval($_POST['subject']); $who = strval($_POST['who']); $toes = explode(';', $to); $t1 = $toes[0]; $mess = $_POST['mess']; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= "From: $who <$from>"; if(count($toes) > 1){ $to = $toes[0]; for($i = 1; $i < count($toes); $i++){ $whe = strval($toes[$i]); $to .= ",$whe"; } } mail($to, $subject, $mess, $headers, "-f $from"); echo '<script>alert("Sent letter!");</script>'; } 

    0