Okay
i finally created a useless script and i am facing some problems
so basically its an anonymous emailer
here is the code
email.html
Code:
<form action="mail.php" method="post">
Your Name: <input type="text" name="name" size="20"><br>
E-mail: <input type="text" name="email" size="20"><br><br>
To: <input type="text" name="id" size="20"><br>
Subject: <input type="text" name="subject" size="20"><br>
Comments<br>
<textarea name="comments" rows="1" cols="20"></textarea><br><br>
<input type="submit" value="Submit">
</form>
mail.php
Code:
<?
/***************************************************************************
* mail.php
* -------------------
* Version : 0.1
* email : unknowngiver@gmail.com
* Warning: Dont copy my source or fbi will kick ur ***
***************************************************************************/
$name=$_POST['name'];
$email=$_POST['email'];
$header=$_post['subject'];
$comments=$_POST['comments'];
$to=$_POST['id'];
$message=$comments;
if(mail($to,$header,$message,"From: $email\n")) {
echo "Thanks for your comments.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>