Flash to email via PHP problem

Discussion in 'Programming' started by TedMaster, Dec 26, 2010.

  1. #1
    So I have a flash application on my website, my visitors use a log in to get access to it.
    I want to give my visitors the ability to claim lost log in information directly through the flash application. Therefore I am trying to get flash to send an email with the help of PHP, however I am not succeeding.

    Within a movieclip called "retrievePW_mc" I have one text field with the var value "email".
    A button named "Send" trigger the following actionscript code:
    retrievePW_mc.loadVariables("email.php", "POST");
    Code (markup):
    The PHP file "email.php" looks like this:


    $sendTo = $_POST["email"];
    $subject = "Your lost password - Feasttest.com"; 
    $headers = "From: xyz.com"; 
    $headers .= "< support@xyz.com >\r\n"; 
    $headers .= "Reply-To:  support@xyz.com\r\n"; 
    $headers .= "Return-Path: support@xyz.com"; 
    $message = "Your password as requested: ".$_POST["password"].". Please note that your username is your e-mail address.";
    mail($sendTo, $subject, $message, $headers); 
    PHP:
    It doesn't even seem like the php file is being executed.

    Hope someone can help :)
     
    TedMaster, Dec 26, 2010 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #2
    I need to see the entire class.

    If this a flash POST form or a custom URL loader object?
     
    ThePHPMaster, Dec 26, 2010 IP