Jump to content

Archived

This topic is now archived and is closed to further replies.

cdhames

PHP and Flash Email

Recommended Posts

Found this script at FlashMailForums, which allows you to email directly from your website.  It works fine but the headers don't show up when I receive the emails.  I have 2 header textboxes; 1 for the clients Name, called t1_2, and the second for the clients email address, called t2_2.  I also have a message boxed called t3_2, which passes the message along just fine.

When I receive the email, the body of the message shows up, but the clients name and email does not.  If I change the var name in the message line to a header variable, then that info will show up fine, so Flash appears to be passing all the info along, just those two header lines aren't showing up anywhere.  Can anyone help?

<?
$sendTo = "myEmail@yahoo.com";
$subject = "A Client Has E-mailed You";
$ip = $_SERVER['REMOTE_ADDR'];
$headers .= "From: " . $_POST["t1_2"] .">\r\n";
$headers .= "Reply-To: " . $_POST["t2_2"] . "\r\n";
$message = $_POST["t3_2"] . "\r\n\n\n"  . "Sender's ip address

is " . nl2br($ip);
mail($sendTo, $subject, $message, $headers);

?>



Share this post


Link to post
Share on other sites
in the fla (flash file), are you parsing the data to the php file??

Share this post


Link to post
Share on other sites
yes. 

on (release) {
_parent.eForm.loadVariables("email.php", "POST");
this.gotoAndPlay("s2");
}

Share this post


Link to post
Share on other sites
without mailing the form,
try parsing the data into the php file, and then back again (maybe make a change along the way to make sure it is working)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.