<meta Content-type: text/plain; charset=windows-1251>
<head>
<style>
a:link{color:#B9B9BD ; text-decoration: none;}
a:hover{color:#B9B9BD ; text-decoration: none;}
a:visited{color:#B9B9BD ; text-decoration: none;}
body{
padding:10px;
background:#2A2E33;
font-family:tahoma, verdana, arial;
font-size:11px;
text-align:center;
color:#B9B9BD;
}
form{
padding:10px;
border:1px solid #666;
width:300px;
height:230px;
margin:0 auto;
}
input{
vertical-align:middle;
margin:1px 0;
padding-right:10px;
border:1px solid #336600;
padding:2px;
background:#363940;
color:#B9B9BD;
}
textarea{
vertical-align:middle;
margin:1px 0;
padding-right:10px;
border:1px solid #336600;
padding:2px;
background:#363940;
color:#B9B9BD;
}
</style>
<title>An0niM-Mailer</title>
</head>
<?
if($_POST['send'])
{
if($_POST['poluchatel'])
{
if($_POST['otpravitel'])
{
if($_POST['messaga'])
{
$to = "$poluchatel" . ", " ;
$subject = "$subj";
$message = $messaga;
$headers = "MIME-Version: 1.0\n";
$headers.= "Content-type: text/$tipe; charset=windows-1251\n";
$headers.= "From: $otpravitel\n";
mail($to, $subject, $message, $headers);
echo('<center><b><font color="green">Сообщение успешно отправлено</font></b></center>');
}
else
{
echo('<center><b><font color="red">Следует ввести текст сообщения!</font></b></center><br><center>Sn@k3</center>');
}
}
else
{
echo('<center><b><font color="red">Введите отправителя письма, то есть ваш e-mail.</font></b></center>');
}
}
else
{
echo('<center><b><font color="red">Необходимо ввести получателя данного письма.</font></b></center>');
}
}else{
?>
<center><h1>Anonim-Mailer</h1></center>
<form name='Send' method='post'>
Получатель <input type='text'name='poluchatel' value=''><br>
Отправитель<input type='text' name='otpravitel' value=''><br>
Тема сообщ. <input type='text' name='subj' value=''><br>
<br>
htm -> <input type='radio' checked='checked' tabindex='1' name='tipe' value='html'> <input type='radio' name='tipe' value='plain'><- text<br>
<br>
<textarea name='messaga' rows='4' cols='20' value=''></textarea><br><br><input type='submit' name='send' value='Отправить'>
</form>
<html><?}?>