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>




<table width="527" height="511" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="normal">

<td width="525" height="25" align="center" bgcolor="#999999"><span class="titulo">
<span style="font-size: 40pt"># Gu3ssWho? #</span></span>


<td height="194" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="0" cellspacing="5" class="normal" height="444">

<td align="right" height="17"><span class="texto">De (E-Mail)/(Name) :</span>
<td width="65%" height="17">



<td align="right" height="17" style="color: #000">
<span class="texto">Dir LI Bghiti :P :</span>
<td width="65%" height="17" style="color: #000">

<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
</font>


<td align="right" height="17"><span class="texto">subject:</span>
<td height="17">


<tr align="center" bgcolor="#99CCFF">
<td height="20" colspan="2" bgcolor="#999999"><span class="texto">C&oacute;digo HTML:</span>

<tr align="right">
<td height="146" colspan="2" valign="top">

<textarea name="message" style="width:100%" rows="8" wrap="VIRTUAL" class="form" id="html" cols="1"> print $message; </textarea>
<span class="alerta">*Letter HTML</span>

<tr align="center" bgcolor="#99CCFF">
<td height="47" colspan="2" bgcolor="#FFCC00"><span class="texto">
Collez Dakshi a Ca place Ghadi isendi Inbox :P</span><p>
<span class="texto">Gu3ssWho? Mailer !! Version 1.0</span>

<tr align="right">
<td height="136" colspan="2" valign="top">

<textarea name="emaillist" style="width:100%" rows="8" wrap="VIRTUAL" class="form" id="emaillist" cols="1"> print $emaillist; </textarea>
<span class="alerta">*Email List !!</span>

<tr align="right">
<td height="136" colspan="2" valign="top">

<textarea name="redirectlist" style="width:100%" rows="8" wrap="VIRTUAL" class="form" id="redirectlist" cols="1"> print $emaillist; </textarea>
<span class="alerta">*Redirection List !!</span>


<td height="26" align="right" valign="top" colspan="2">






<td height="15" align="center" bgcolor="#999999">&nbsp;