|
$to = "director@un-museum.ru";
if ($_POST['send']) {
echo("\t ");
if (!empty($person_name)) {
if (!empty($email)) {
if (!empty($text)) {
if (@mail($to, $subject, $text, "From: $person_name <$email>\nContent-Type: text/plain;\n\tCharset=\"Windows-1251\"")) {
echo("Message was sent.");
} else {
echo("Impossible to send message.");
}
} else {
echo("You didn't enter the text.");
}
} else {
echo("You didn't enter your e-mail.");
}
} else {
echo("You didn't enter your name.");
}
echo(" ");?>
} else { ?>
} ?>
|