I have read all the tutorials I could find discussion Flash/PHP mailers. I have followed the ones one Kirupa.com, Actionscript.org and many many others and have never got them to work. The one I have currently isn’t working either, so I am hoping someone could help me out with it.
Ok, first, here is the PHP
**[color=Red]<?php
// set variables
$to = "email@email.com";
$subject = “contact”;
$cname = "cname
";
$msg = "name
";
$msg .= "message
";
// mail function
mail($to, $subject, $cname, $msg, "From: Contact
Reply-To: $email
");
?>
[/color]**[color=Red][color=Black]Secondly, I have the actionscript set like so:
This is on the submit button.
[color=Blue]on (release) {
if (name eq “” or email eq “” or message eq “” or cname eq “”) {
gotoAndStop(“error”);
} else {
loadVariablesNum(“flashmail.php”, 0, “POST”);
gotoAndStop(“confirm”);
}
}
[/color]
Thre is no other actionscript in my mail script other than the one on the submit button, and the stop function on an actions layer.
I have all the variables named in Flash, and the .swf and .php are both in the same directory, so I am kinda stumped at the moment. Also, I have the right email address set as well.
Flash Form Layout
name: (the input box’s variable is “name” with no quotes)
email:[/color][/color][color=Red][color=Black] (the input box’s variable is “email” with no quotes)[/color][/color]
[color=Red][color=Black]company name:[/color][/color][color=Red][color=Black] (the input box’s variable is “cname” with no quotes)[/color][/color]
[color=Red][color=Black]inquiry:[/color][/color][color=Red][color=Black] (the input box’s variable is “message” with no quotes)
Any help is greatly appreciated, as I haven’t gotten any of these to work on my own, only one has worked, and it was a tutoril I uploaded to my server.
-Dan
[/color][/color]