Here is a very simple php script that allow me to send email from Flash AS-2 now My question is if I want to send the email to different person how can I modify this script. Please advise.
<?PHP
// read the variables from the string, (this is not needed with some servers).
$theName = $_REQUEST["theName"];
$theEmail = $_REQUEST["theEmail"];
$theCompany = $_REQUEST["theCompany"];
$theMessage = $_REQUEST["theMessage"];
$to = "shaniji2003@yahoo.com";
$subject = "Message from the Site";
$message = "Name:" . $theName;
$message .= "
Email:" . $theEmail;
$message .= "
Company:" . $theCompany;
$message .= "
Message:" . $theMessage;
$headers = "From: ". $theName . " " . "<" . $theEmail. ">
";
$headers .= "Reply-To: " . $theEmail. "
";
$headers .= "Return-path: ". $theEmail;
$sentOk = mail($to,$subject,$message,$headers);
echo"sentOk=" . $sentOk;
?>