Jump to content

E-Mail script problem


WebCheez

Recommended Posts

So, I'm trying to make a script that will send emails from apparently anyone.

<?php
$email = $_REQUEST['email']
$target = $_REQUEST['target']
$message = $_REQUEST['message']
$subject = $_REQUEST['subject']

mail( $target, $subject, $message, "From: $email" );
echo "Mail sent." ;
?>

 

Here's the HTML, if it matters.

<html>
<head>
<title>EMAIL SPOOFER</title>
</head>
<body>
<p>This program can make emails appear as if they came from any email address, real or fake!</p>
<form method="post" action="mailspoof.php">
Apparent sender: <input name="email" type="text" /><br />
Subject: <input name="subject" type="text" /><br />
Recipient: <input name="target" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>

</body>
</html>

Here's the error I'm getting from my webhost:
Parse error: syntax error, unexpected T_VARIABLE in /home/a5938041/public_html/mailspoof.php on line 3

If I know me, it's probably the most stupid mistake in the universe, so please point it out. 

Link to comment
https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.