Simple email from flash

I set up a very simple version, but it’s still not sending me an email.

FLASH:


var varSend:URLRequest = new URLRequest("email_parse.php");
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;

varLoader.load(varSend);

email_parse.php:

<? 

$to = "XXX@gmail.com"; 
$from = "XXX@yahoo.com";
$msg = "this is the message"; 
$subject = "this is the subject";
mail($to, $subject, $msg, "From: me
Reply-To: $from
"); 

?>

It is my understanding that the problem could be that my server isnt setup for emailing through php. If so, is there a way to check this?