3 Replies Latest reply on Dec 4, 2007 11:19 AM by kovacic

    Emailing from Flash

      I know I post for help alot on this project... But I have decided to un-giveup on it...

      I am trying to have it send an email after a chat is finished using the blue button... to the right of the chat..

      To use the program... it is full screen, use the little dot at the bottom of the screen, that will take you to screen 2, put in a name, then hit continue (or enter), in the next page is the chat script, it only responds to HI and Bye right now, then the blue button should send an email to my email, but its not sending... The FLA can be found at: http://cid-96130dac976eef2f.skydrive.live.com/self.aspx/Public/letters12.fla

      This is using Flash MX by the way.. I am only hoping to send the chat script to the email in HTML format.

      I will include the code to the PHP script (which as been tested and working using another flash program on my computer..)

      Processor Page

      $sendTo = "mikekovacic@gmail.com";
      $subject = "My Flash site reply";
      $headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";

      $headers .= "Reply-To: " . $_POST["email"] . "\r\n";

      $headers .= "Return-path: " . $_POST["email"];

      $message = $_POST["message"];

      mail($sendTo, $subject, $message, $headers);