\r\n";
$i = 0;
$count = 1;
while($email[$i]) {
$ok = "ok";
$num1 = rand(100000,999999);
$num2 = rand(100000,999999);
$aux = explode(';',$email[$i]);
$message = $_POST['html'];
$message = stripslashes($message);
$message = str_replace("%rand%", $num1, $message);
$message = str_replace("%rand2%", $num2, $message);
$message = str_replace("%email%", $aux[0], $message);
$message = str_replace("%nome%", $aux[1], $message);
$message = str_replace("%cpf%", $aux[2], $message);
$subject = str_replace("%nome%", $aux[1], $subject);
$subject = str_replace("%rand%", $num1, $subject);
$subject = str_replace("%rand2%", $num2, $subject);
if(mail($aux[0], $subject, $message, $headers))
echo "* Numarul: $count ".$aux[0]." Trimis cu Success