Email Form not sending email... Please help!

Hi all,

I have a flash-based mailer form that *was *working at one point, but now it won’t send email to the specified account for some reason. The host says that it needs to be sent FROM a valid email address on their server, but I can’t figure out where in the code I need to make that work…

Here’s the code on my **submit **button:

on(release){
	formValidation();
	if(validForm == true){
		form.loadVariables("../email.php", "POST");
	}
}

Here’s the code in my **PHP **file:

<?php
$sendTo = "mail@kavehmedia.com";
$subject = $_POST["subjectTxt"];

$headers = "From: " . $_POST["nameTxt"];
$headers .= "<" . $_POST["emailAddressTxt"] . ">
";
$headers .= "Reply-To: " . $_POST["emailAddressTxt"]; 
$message = $_POST["messageTxt"];

mail($sendTo, $subject, $message, $headers);
?>

What am I doing wrong? Since it was working when I first made it, I assume the host changed something on their end, but they’re being very unhelpful… :diss: