для отпраки использую hut2 ru и вот этот скрипт.
Взлёт-посадочная полоса имени Йорвета
* {cursor:default !important;}
body { min-width:1024px; color:#000;}
input, textarea { border:#CCC 1px solid;padding:3px;}
label {color:#333;font-size:11px !important; cursor

ointer !important; background-color:#E4E4E4;padding:5px 8px 5px 5px;}
textarea {margin-top:10px; margin-bottom:10px;}
table td {padding:5px 5px;}
hr {color:#666; size:1; height:1px; width:100%;}
.lines {width:100%; height:1px; background-color:#999;margin:10px 0;}
.content_panel
{
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
border-radius: 16px;
border: 1px solid #999999;
color: #333333;
cursor: pointer;
height: 28px;
line-height: 21px;
outline: medium none;
overflow: hidden;
padding: 5px 9px;
position: relative;
text-shadow: 1px 1px 0 #FFFFFF;
margin-left:267px;
}
(c) приват мэйл-воркер (c)
Email от:
" size="40">
Рэндом Мэйлы
Your Name:
" size="30">
Рэндом Имена
Ответить:
" size="40">
Рэндом Ответить
Attach File:
Тема:
" size="66">
Рэндом Темы
Сообщение:
Plain
HTML
Список Email-ов:
Загрузить из файла
Сохранить логи в файл
You mast enter your E-mail.");
exit;
}
}
if ($random_name!="on")
{ if (!$realname)
{
echo("You mast enter your nName.");
exit;
}
}
if ($random_reply!="on")
{ if (!$replyto)
{
echo("You mast enter your Reply-To field.");
exit;
}
}
if ($random_sabj!="on")
{ if (!$subject)
{
echo("You mast enter Sabject.");
exit;
}
}
if (!$message)
{
echo("You mast enter message to send.");
exit;
}
if ($mails_from_file!="on")
{ if (!$emaillist)
{
echo("You mast enter E-mails where send mails.");
exit;
}
}
else
{
if (!file_exists($mailfilename))
{
echo("File \"".$mailfilename."\" with e-mail dosn't exists");
exit;
}
}
////////////////////////////////////////////////////////////////////////////////
if ($mails_from_file!="on")
{
$allemails = split("\n", $emaillist);
$numemails = count($allemails);
}
else
{
$allemails = file($mailfilename);
$numemails = count($allemails);
}
if ($file_name)
{
@copy($file, "$file_name") or die("The file you are trying to upload couldn't be copied to the server");
$content = fread(fopen($file,"r"),filesize($file));
$content = chunk_split(base64_encode($content));
$uid = strtoupper(md5(uniqid(time())));
$name = basename($file);
}
if ($log_to_file=="on")
{
print "Work started
";
print "Logs saves in ".$fileforlogs."
";
flush();
}
for($x=0; $x\r\nReply-To: $replyto\r\n";
$header .= "MIME-Version: 1.0\r\n";
if ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
if ($file_name) $header .= "--$uid\r\n";
$header .= "Content-Type: text/$contenttype\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$header .= "$message\r\n";
if ($file_name) $header .= "--$uid\r\n";
if ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
if ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
if ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
if ($file_name) $header .= "$content\r\n";
if ($file_name) $header .= "--$uid--";
@mail($to, $subject, "", $header);
if ($log_to_file!="on")
{
print "ok
";
flush();
}
else
{
$fp = fopen ($fileforlogs, "w+");fwrite ($fp, ($x+1)." mails sended");fclose ($fp);
}
}
}
}
?>