have created three input text fields and have them the following variables

Name
Message
Comments

on the button i have put

on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
gotoAndPlay ("invalid");
} else {
loadVariablesNum ("form.php", 1, "POST");
gotoAndPlay ("valid");
}
}

and here is the PHP code which was given to me.....but i am having problems can someone HELP.....

<?
/* subject */
$subject = "Yuggi";

/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: $name <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: $name <$email>\n"; // Return path for errors

/* recipients */
$recipient = "chillpillsmile@hotmail.com";

/* message */
$message = $comments;

/* and now mail it */
mail($recipient, $subject, $message, $headers);

Know i i have tried playing around but IT IS NOT WORKING and i am not receiving any emails.....

PLEASE CAN SOMEONE HELP ME>>>>>>>>.


[Edited by Yuggi on 02-13-2002 at 09:07 AM]