Well I am passing in all the data that mail function requires and I am still not getting any result. Basically I am going to explain my situation to you.
I am useing this mail function to send mail within flash interface. I set the variables through flash text field and all the variables are being passed in POST method.
But I can't get the basic mail function to work. I made a HTML interface like the one below and also wrote a script which goes along with it. But I can't still recieve mail. You can take a look at the script below and maybe catch a mistake.
Thanks.
INTERFACE(mail.html)
============================================================
<head>
<title>Testing the Email Script</title>
</head>
<body>
<FORM method="POST" action="email.php">
<p>Your Name: <INPUT type="text" name="name" size=30></p>
<p>Your Email: <INPUT type="text" name="email" size=30></p>
<p>Your Subject: <INPUT type="text" name="subject" size=30></p>
<p>Message: <br> <textarea name="message" cols=30 rows=5></textarea>
</p>
<INPUT type="submit" value="send this form">
</form></body>
SCRIPT(email.php)
============================================================
<?
$msg = "Viewer Name:\t$name\n";
$msg .= "Viewer E-Mail:\t$email\n";
$msg .= "Viewer Message:\t$message\n";
$mailheaders = "From: CameraPlanet.Com";
$mailheaders .= "Reply-To: $email\n\n";
mail("shaj.miah@cameraplanet.com", $subject, $msg, $mailheaders);
?>