i need a little help, i have this basic mail form, and in the to box goes the destination of who to send it to, but it’s not sending…
anyways could anyone let me know what im doing wrong here:
<html>
<body>
<?php
if (isset($_REQUEST[‘to’]))
{
$from = $_REQUEST[‘from’] ;
$to = $_REQUEST[‘to’] ;
$subject = $_REQUEST[‘subject’] ;
$message = $_REQUEST[‘message’] ;
mail($to, “Subject: $subject”, $message, “From: from”);
echo “Hey! Your message is on it’s way! Your message will be displayed as fallows:<br />”.$message;
}
else
{
echo “<form method=‘post’ action=‘mailform.php’>
From: <input name=‘from’ type=‘text’ /><br />
To: <input name=‘to’ type=‘text’ /><br />
Subject: <input name=‘subject’ type=‘text’ /><br />
Message:<br />
<textarea name=‘message’ rows=‘15’ cols=‘40’ type=‘text/html’>
</textarea><br />
<input value=‘hit it!’ type=‘submit’ />
</form>”;
}
?>
</body>
</html>
any help = greatly appericiated!