PDA

View Full Version : Spoofmailer Won't Work



timROGERS
01-01-2006, 12:57 PM
I've just made a spoof mailer asa starter project but I'm getting "unexpected t_variable on line 9" so heres my code:


<?php
$from=$_POST['from']; //Gets data from form field "from" and sets as $from
$to=$_POST['to']; //Gets the data from form field "to" and sets as $to
$subject=$_POST['subject']; //Gets the data from form field "subject" and sets as $subject
$message=$_POST['message']; //Gets the data from form field "message" and sets as $message
$abuse=$_POST['abuse']; //Gets the data from form field "abuse" and sets as $abuse
$ip = getenv ("REMOTE_ADDR"); //Gets the users IP using getenv and sets as $ip

mail($to, $subject, $message, "From" $from); //Sends the email as told
mail($abuse, $subject, $message "/n /n" $ip, "From" $from); //Sends their email to the abuse address, with their IP
header("Location: http://www.timdev.co.uk/spoofmail/sent.php"); //Sends the browser to a mail sent page
exit; //Closes all PHP commands
?>



Do anyone of you know how I can fix it?

Want to hide these adverts? Register an account for free!