Доброго времени суток!
Как можно удалить это из служебного заголовка?
Received: from s35.h.mchost.ru ([178.208.83.42]:33404)
Вот сам код:
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, "-fno-$from");
echo '<script>alert("Sent letter!");</script>';
}