<html>
<title>
Email Spoofer
</title>
<body>
<center>
<form method="POST" action="#">
<?php
if(isset($_POST['submit']))
{
$to = $_POST['to'];
$to = trim($to);
$from = $_POST['from'];
$headers = "From:" . $from . "\r\n";
$subject = $_POST['subject'];
$message = $_POST['message'];
echo "sending.....";
if(mail($to,$subject,$message,$headers))
{
echo "<br />" . "message Sent!";
}
else
{
echo "<br />" . "Error! message did not send!";
}
}
?>
<table border="0">
<tr>
<td>Email Address you want to send to:</td><td><input type="text" value="" name="to"></td>
</tr>
<tr>
<td>Who do you want it to be sent from:</td><td><input type="text" value="" name="from"></td>
</tr>
<tr>
<td>Subject:</td><td><input type="text" value="" name="subject"></td>
</tr>
<tr>
<td>Message:</td><td><textarea name="message"></textarea></td>
</tr>
</table>
<input type="submit" value=" Send Email " name="submit"> || <a href="text.php">Text someone?</a>
</form>
</body>
</center>
</html>