Advertisement
PalmaSolutions

mail1.php

Oct 8th, 2018
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.52 KB | None | 0 0
  1. <?php
  2. @set_time_limit(0);
  3. if(isset($_POST['send']))
  4. {
  5.     $message = $_POST['html'];
  6.     $subject = $_POST['ursubject'];
  7.     $uremail = $_POST['uremail'];
  8.     $urname = $_POST['realname'];
  9.     $email = $_POST['email'];
  10.  
  11.     $message = urlencode($message);
  12.     $message = ereg_replace("%5C%22", "%22", $message);
  13.     $message = urldecode($message);
  14.     $message = stripslashes($message);
  15.  
  16. }else{
  17.     $testa ="";
  18.     $message = "<html><body><font color='red'>OYA PUT YOUR LETTER BEFORE YOU SPAM</font></body></html>";
  19.     $subject = "Warning! Your Email Account Will Soon Be Close, Update Now";
  20.     $urname = "Mail Administrator";
  21.     $uremail = "postmaster@webmaster.com";
  22.     $email = "update@root.com";
  23. }
  24. ?>
  25. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  26. <html xmlns="http://www.w3.org/1999/xhtml"><head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  28. <link rel="SHORTCUT ICON" href="http://www.smt.org//images/favicon.ico">
  29. <title> priv8 MaiLer 2016&trade;</title>
  30. <style type="text/css">
  31. <!--
  32. .form {font-family: "Courier New", Courier, monospace;border:none, background-color:#000000;}
  33. .send {font-family: "Courier New", Courier, monospace;border:none; font-size:18px; background-color:#FFFFFF; font-black:bold}
  34. #Layer1 {   position:absolute;
  35.     left:203px;
  36.     top:109px;
  37.     width:829px;
  38.     height:483px;
  39.     z-index:1;
  40.     margin-top: 0.5%;
  41.     margin-right: 5%;
  42.     right: 20%;
  43.     bottom: 200%;
  44.     margin-bottom: 10%;
  45.     margin-left: 5%;
  46.     border: thin solid #000;
  47. }
  48.  
  49. -->
  50. </style>
  51. </head>
  52.  
  53. <body>
  54. <form action="" method="post" name="codered">
  55. <div align="center" id="Layer1">
  56.   <table width="87%" height="77%" border="0" cellspacing="10">
  57.     <tbody><tr>
  58.       <td height="23" colspan="2"><div align="center" class="form">mailer </div></td>
  59.     </tr>
  60.     <tr>
  61.       <td width="53%" height="24"><div align="center">
  62.         <input name="uremail" type="text" class="form" id="uremail" size="30" value="<? print $uremail; ?>" placeholder="Your E-mail">
  63.       </div></td>
  64.       <td width="47%"><div align="center">
  65.         <input name="realname" type="text" class="form" id="realname" size="30" value="<? print $urname; ?>" placeholder="Your Name">
  66.       </div></td>
  67.     </tr>
  68.     <tr>
  69.       <td height="34" colspan="2"><div align="center">
  70.         <input name="ursubject" type="text" class="form" id="ursubject" size="83%" value="<? print $subject; ?>" placeholder="Your Subject Should Be Here">
  71.       </div>
  72.       </td>
  73.     </tr>
  74.     <tr>
  75.       <td height="165"><textarea name="html" class="form" cols="40" rows="10" placeholder="Your HTML MESSAGE Here" id="html"><? print $message; ?></textarea></td>
  76.       <td>
  77.       <div align="right">
  78.         <textarea class="form" rows="10" placeholder="Leads" name="email" cols="35"><? print $email; ?></textarea>
  79.       </div></td></tr>
  80.   </tbody>
  81.   </table>
  82.   <div><input type="submit" class="send" name="send" value="Start Sending">
  83.   </div><DIV class="send"><?php
  84. if(!isset($_POST['send'])){
  85.     exit;
  86. }
  87.  
  88. if(!isset($_GET['c']))
  89. {
  90.     $email = explode("\n", $email);
  91. }else{
  92.     $email = explode(",", $email);
  93. }
  94. $son = count($email);
  95.  
  96. if(!isset($_GET['e'])){
  97.     $header = "MIME-Version: 1.0\n";
  98.     $header .= "Content-type: text/html; charset=iso-8859-1\n";
  99.     $header .= "From: ".$urname . " <" . $uremail . ">\n";
  100.     $header .= "Reply-To: " . $uremail . "\n";
  101.     $header .= "X-Priority: 3\n";
  102.     $header .= "X-MSMail-Priority: Normal\n";
  103.     $header .= "X-Mailer: ".$_SERVER["HTTP_HOST"];
  104. }else{
  105.     $header ='MIME-Version: 1.0' . "\r\n";
  106.     $header .= 'Content-type: text/html' . "\r\n";
  107.     $header .="From: ".$uremail;
  108. }
  109. $i = 0;
  110. $voy=1;
  111. while($email[$i])
  112. {
  113.     if(isset($_GET['time']) && isset($_GET['cant'])){
  114.         if(fmod($i,$_GET['cant'])==0 && $i>0){
  115.             print "----------------------------------> wait ".$_GET['time']." Segs. Sending to ".$_GET['notf']."...<br>\n";
  116.             flush();
  117.             @mail($_GET['notf'], $subject, $message, $header);
  118.             sleep($_GET['time']);
  119.         }
  120.     }
  121.     $mail = str_replace(array("\n","\r\n"),'',$email[$i]);
  122.         $message1 = ereg_replace("&email&", $mail, $message);
  123.     if(@mail($mail, $subject, $message1, $header))
  124.     {
  125.         print "<font color=blue face=verdana size=1>    ".$voy." OF ".$son."  ;-) ".trim($mail)."  SPAMMED TO INBOX</font><br>\n";
  126.         flush();
  127.     }
  128.     else
  129.     {
  130.         print "<font color=red face=verdana size=1>    ".$voy." OF ".$son.":-( ".trim($mail)."  OOOPSS!!! SOMETHING IS WRONG, MAIL NOT SENT...</font><br>\n";
  131.         flush();
  132.     }                                                            
  133.     $i++;
  134.     $voy++;
  135. }
  136.  
  137. ?></DIV>
  138. </div>
  139. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement