5 Replies Latest reply on Mar 26, 2007 12:04 PM by Publinet_Rafael

    Send an email using flash

      Hi guys,

      I am trying to send an email using flash which does send one but the variables are not loaded to the php file using the POST method. I tried so many things but just couldn't get it to work.

      This is a way i am currently doing it:

      on (release)
      //parent instance
      //check to see if it is empy
      if (_parent.name.text eq "")
      stop(); //this all works fine

      //i use the loadVariablesNum function to load to my php file which does that but the variables do not seem to be passed through. See PHP script below

      //an email is sent but no values were passed through, I tested this but nothing

      //variables used in the flash movie are as follows:

      1. in1, in2, in3, in4 which all are InputText instances...

      PHP script:


      $sendTo = "fanclub@mtyide.co.za";
      $subject = $in3;

      $headers = "From: \"$in1\" <$in2>\nX-Mailer: PHP/" . phpversion();
      // next include a replyto
      $headers .= "Reply-To:\$in2\r\n";
      $headers .= "Return-path: $in2";

      // now we can add the content of the message to a body variable
      $message = $in4;

      // once the variables have been defined, they can be included
      // in the mail function call which will send you an email
      mail($sendTo, $subject, $message, $headers);


      Help is needed a.s.a.p...

      Thank you

      Yandisa Mtyide