<?
$getHour = date('H');
$getMinut = date('i');
$getHour = $getHour * 3600000;
$getMinut = $getMinut * 60000;
$getDate = $getMinut + $getHour;
$mess = trim($_POST['mess']);
$msg = "$mess";
$sitename = "";
$pagetitle = "Заявка с сайта \"$sitename\"";
$to ="info@";
if (($getDate >= 32400000 && $getDate <= 64800000) && (date("w") >= 1 && date("w") <= 5)) {
$recepient = "info@, sergey@"; // письма приходят с 09:00 по 18:00 пн-пт
} else {
$recepient ="info@"; // письма приходят с 18:01 - 08:59
}
mail($recepient, $pagetitle, $msg, "Content-type: text/plain; charset=\"utf-8\"\n From: $to");
?>