The php file looks like this.
Code: Select all
<?
$to = "my@email"; // replace with your mail address
$s_name = $_POST['sender_name'];
$s_mail = $_POST['sender_mail'];
$subject = stripslashes($_POST['sender_subject']);
//$body = '';
//foreach ($_POST as $key => $value) { $body.= "_POST[$key] => $value\n";}
//foreach ($_GET as $key => $value) { $body.= "_GET[$key] => $value\n";}
$body = stripslashes($_POST['sender_message']);
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: $s_name <$s_mail>\n";
$header = "From: $s_name <$s_mail>\n";
$header .= "Reply-To: $s_name <$s_mail>\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
@mail($to, $subject, $body, $header)
?>
The flash code is attached to a send button.
Code: Select all
on (release) {
var sender_mail:String = this._parent._parent.Semail.text;
var sender_name:String = this._parent._parent.Sname.text;
var sender_subject:String = this._parent._parent.Ssubject.text;
var sender_message:String = this._parent._parent.Smessage.text;
loadVariables("http://www.llamafactory.com/flash/mailer.php",this,"POST");
}
I made another flash file, and everything is identical except the level for the variables is _root instead of this.
HELP!