4 Replies Latest reply on May 23, 2007 11:28 AM by brangel

    Contact Form Actionscript, not receiving e-mails?

    brangel


      PLEASE HELP! I'm reletively new to scripting in Flash and am having problems getting my Contact Form to work. So far, I have been successfully able to get everything to work upon clicking the "submit" button. But I never get any e-mails to the address I've specified in my php file. I even get the "Your message was sent. Thank you." reply in my web browser with no errors, but never receive any e-mails?

      I'm currently using Adobe Flash 9.0, and saving out the movie in a "Actionscript Version 2.0" and also saving down to "Flash Player 8" compatibility... do I need to save to "Actionscript 3.0" and to the most current version of Flash?

      I've copied both the reset/submit scripts in addition to a copy of the php script. Any help or reco's on this problem would gladly be appreciated!


      RESET ACTIONSCRIPT

      }
      on (release) {
      _parent.t1_2="YOUR NAME:";
      _parent.t2_2="YOUR COMPANY:";
      _parent.t3_2="TELEPHONE:";
      _parent.t4_2="E-MAIL:";
      _parent.t5_2="MESSAGE:";
      }



      SUBMIT ACTIONSCRIPT

      }
      on (release) {
      _parent.getURL("contact.php","_blank","GET");
      _parent.t1_2="YOUR NAME:";
      _parent.t2_2="YOUR COMPANY:";
      _parent.t3_2="TELEPHONE:";
      _parent.t4_2="E-MAIL:";
      _parent.t5_2="MESSAGE:";
      }



      CONTACT.PHP FILE

      <?php

      $your_company = $_GET['company'];
      $your_name = $_GET['name'];
      $your_phone = $_GET['phone'];
      $your_email = $_GET['email'];
      $your_message = $_GET['message'];

      $recipient_email = "contact@benrangel.com";

      $subject = "from " . $your_email;
      $headers = "From: " . $your_name . " <" . $your_email . ">\n";
      $headers .= 'Content-type: text/html; charset=iso-8859-1';

      $content = "<html><head><title>Contact letter</title></head><body><br>";
      $content .= "Company: <b>" . $your_company . "</b><br>";
      $content .= "Name: <b>" . $your_name . "</b><br>";
      $content .= "Phone: <b>" . $your_phone . "</b><br>";
      $content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
      $content .= $your_message;
      $content .= "<br></body></html>";

      mail($recipient_email,$subject,$content,$headers);
      ?>
      <html>
      <body bgcolor="#282E2C">
      <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
      Your message was sent. Thank you.
      </div>
      </body>
      </html>
      <script>resizeTo(300, 300)</script>