I posted this question on the Flash Development Area when I was trying to figure how to create a contact form in flash to e-mail through our server rather than the user's e-mail client ...
I have looked a many posts regarding this issue and I belive it is simply how our webserver of the site in IIS is setup that keeps the form from working.
I am beginning with a very simple form I got from "cyanblue" in his Email101.zip that only includes the user name, e-mail, and memo ... The form is pretty bullet proof so I don't think it has anything to do with the e-mail not working ...
He also provided the php file to allow the server to send ... I include this at the bottom of this question if you see anything that could keep it from working ... It is also pretty straight forward as well ... so I am back to our webserver and how it is set up ...
We have php installed and working since we already have an online training center that uses php. I also have another php site that is use for testing and it works ...
So somehow I don't have something right for the e-mail to work ... Help !!!
Here is the email.php code:
<?php
if ($_POST)
{
$mailTo = "trp@aeii.net";
$mailSubject = "[Contact] Website Contact from - (" . $_POST['name'] . ")";
$Header = "MIME-Version: 1.0\r\n";
$Header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$Header .= "From: " . $_POST['email'] . "\r\n";
$output = "<BR>";
$output .= "From : " . $_POST['name'] . "<BR><BR>";
$output .= "Email : " . $_POST['email'] . "<BR><BR>";
$output .= "Message : " . $_POST['message'] . "<BR><BR>";
$output = nl2br($output);
if (mail($mailTo, $mailSubject, stripslashes($output), $Header))
{
echo("&result=1&");
}
else
{
echo("&result=2&");
}
}
else
{
echo("This script runs only in Flash!!!");
}
?>
Start Free Trial