Jump to content


Photo

PHP and Flash Email


  • Please log in to reply
3 replies to this topic

#1 cdhames

cdhames
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 August 2006 - 05:09 AM

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);

?>





#2 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 18 August 2006 - 01:00 PM

in the fla (flash file), are you parsing the data to the php file??
Tell me the problem, I will try tell you the solution

#3 cdhames

cdhames
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 August 2006 - 02:59 PM

yes. 

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

#4 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 18 August 2006 - 03:25 PM

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)
Tell me the problem, I will try tell you the solution




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users