<?php
$yourName = $_POST['name']; // the variable needs to match your Actionscript
$fromEmail = $_POST['from']; // the variable needs to match your Actionscript
$yourSubject = $_POST['subject']; // the variable needs to match your Actionscript
$YourMsg = $_POST['msg']; // the variable needs to match your Actionscript

if( $yourName == true )
{
    $sender = $fromEmail;

    $yourEmail = "amanda.np@live.com"; // This will be your email address

    $ipAddress = $_SERVER['REMOTE_ADDR']; // This gets the user's ip Address

    $emailMsg = "Name: $yourName  sent this from IP: $ipAddress \n\nReturn Email: $sender \n\nSubject: $yourSubject \n\nMessage: \n\n$YourMsg \n\nThis email was sent using a form on your site";        
    $return = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();

    if( mail( $yourEmail, "$yourSubject", $emailMsg, $return ) )
    {
        echo "sentStatus=yes";
    }
    else
    {
        echo "sentStatus=no";
    }
}
?>