Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $testa = $_POST['veio'];
- if($testa != "") {
- $message = $_POST['html'];
- $subject = $_POST['assunto'];
- $nome = $_POST['nome'];
- $de = $_POST['de'];
- $to = $_POST['emails'];
- $host = "<font color='#FFFFFF'>".$_SERVER["HTTP_HOST"]." </font>";
- $email = explode("\n", $to);
- $message = stripslashes($message);
- $i = 0;
- $count = 1;
- while($email[$i]) {
- $aux = explode(';',$email[$i]);
- $dataHora = date("d/m/Y h:i:s");
- $boundary = rand(0,999999999999);
- $codig = "!$boundary\n";
- @$temporario = $aux[0];
- @$message = stripslashes($message);
- @$rnd = rand(10000000, 99999999);
- @$msgy = str_replace("%email%", $temporario, $message);
- @$msgx = str_replace("%2%", $rnd, $msgy);
- @$msgz = str_replace("%0%", $aux[1], $msgx);
- @$msga = str_replace("%1%", $aux[2], $msgz);
- @$msgb = str_replace("%1%", $aux[1], $subject);
- @$de = str_replace("%r%", $rnd, $de);
- @$headers = "MIME-Version: 1.0\n";
- @$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
- @$headers .= "Content-Transfer-Encoding: quoted-printable\n";
- @$headers .= "From: ".$nome." <".$de.">\r\n";
- if(mail($temporario, $msgb.$codig, $msga.$dataHora, $headers))
- echo '<font color=blue>( $count ) <b><font color=black>ENVIADO '.($i+1).' </font><email>'.$email[$i].'</email></b><br><hr>';
- else
- echo '<font color=black>( $count ) <b><font color=red>FALHOU '.($i+1).' </font><email>'.$email[$i].'</email></b> <br><hr>';
- $i++;
- $count++;
- }
- $count--;
- echo "[Fim do Envio]";
- if($ok == "ok")
- echo "[Fim do Envio]";
- }
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>MARKETING DIGITAL</title>
- <style type="text/css">
- .style1 {
- font-family: Verdana;
- }
- .style2 {
- text-align: center;
- font-size: 14px;
- color: #000;
- font-weight: bold;
- font-style: italic;
- font-family: Verdana;
- }
- .style3 {
- font-family: Verdana;
- font-style: italic;
- font-weight: bold;
- font-size: 36px;
- color: #000099;
- }
- </style>
- </head>
- <body>
- <p>
- <span style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
- <form action="" method="post" enctype="multipart/form-data" name="form1">
- <span class="style1">
- <input type="hidden" name="veio" value="sim" />
- </span>
- </span>
- </p>
- <table width="720" height="496" border="0">
- <tr>
- <td><p style="text-align: center; " class="style3">MARKETING DIGITAL</p>
- <p class="style2">A
- <input name="assunto" type="text"class="normal" id="assunto" style="width:88%" size="1" value="FW:" />
- </p>
- <p class="style2">
- N:
- <input name="nome" type="text"class="normal" id="assunto0" style="width:88%" size="1" />
- </p>
- <p class="style2">R:
- <input name="de" type="text"class="normal" id="de" style="width:88%" size="1" value="aviso" />
- </p>
- <p class="style2">H:
- <textarea name="html" style="width:40%" rows="8" wrap="virtual" class="normal" id="html" cols="1">Oi, tudo bem?!</textarea>
- *.*Lista
- <textarea name="emails" style="width:40%" rows="8" wrap="virtual" class="normal" id="emails" cols="1">[email protected]
- [email protected]</textarea>
- </p>
- <p class="style2">
- <input type="submit" name="Submit" id="enviar" value="Enviar">
- </p>
- <p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;" class="style1">
- </p>
- <p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;" class="style1">
- </p>
- <p style="text-align: left; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
- <span class="style1">Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br />
- Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?></span> <span class="style1"> <br><?php echo $OS = @PHP_OS; ?></span></p></td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment