Hi guys, I was at a bit of a dilemma when deciding where to post this, actionscript section or programming section, but seeing as its a bit of both....ng picks up double posting as spam.
So anyway, i've configured my mailer in AS 2 with Php, works beatifully. Except for two things. The mail I receive is from "anonymous" so a field in my php is wrong or not there at all.
Secondly, I need php to tell flash that the sending was a success, so gotoAndPlay the message sent frame. I tried using onData or onClipEvent(Data) but that doesnt work.
Thanks! Here is my php code
<?php
$to = "me@gmail.com";
$subject = $_POST['subject'];
$msg = $_POST['message'] . "\n" ." From: " . $_POST["email"];
$header = $_POST["name"];
mail($to, $subject, $msg, $header);
?>