I'm a newbie here please go light on me.. I got this code here that I'm trying to figure out but I can't get it to work... can someone please take a look at the code and tell what I'm doing wrong it's driving crazy..Thanks

//------------------------------------------------
// File: 'phpmail.php'
// Func: using mail();
//------------------------------------------------

$Subject = "Test E-mail";
$toEmail = "MyEmail@somewhere.com";

if($submit)
{
mail($fromEmail, $Subject, $nMessage."\nFrom: ".$fromName."<".$fromEmail.">");
}
?>

<html>
<head>
<title>Mail Tutorial</title>
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="<? echo($PHP_SELF) ?>">
Your E-mail:

<input type="text" name="fromEmail" size="25"> <br>

Your Name: <input type="text" name="fromName" size="25"> <br>

Your Message: <br>

<textarea cols="50" rows="5" name="nMessage"> Message ...</text> <br>

<input type="submit" value="Submit">

</body>
</head>