# Email Form not sending email... Please help!

**URL:** <https://forum.kirupa.com/t/email-form-not-sending-email-please-help/200265>\
**Category:** flash\
**Created:** [September 10, 2006, 11:32pm UTC](https://forum.kirupa.com/t/email-form-not-sending-email-please-help/200265 "2006-09-10T23:32:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaveh](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Kaveh](https://forum.kirupa.com/u/Kaveh)\
**Post date:** [September 10, 2006, 11:32pm UTC](https://forum.kirupa.com/t/email-form-not-sending-email-please-help/200265/1 "2006-09-10T23:32:55Z")

</div>

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:

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

```

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

```auto
<?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:
