help with PHP mail

Discussion in 'Windows - Software discussion' started by smickle13, Apr 13, 2008.

  1. smickle13

    smickle13 Member

    Joined:
    Jan 28, 2006
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    16
    i have tried for hours to get this to work but i cant!!!!

    i looked at other threads no help so hopefully someone here can

    i run my flash movie to send mail via php

    my flash codes are:

    stop();

    var senderLoad:LoadVars = new LoadVars();
    var receiveLoad:LoadVars = new LoadVars();

    sender.onRelease = function() {
    senderLoad.theName = theName.text;
    senderLoad.theEmail = theEmail.text;
    senderLoad.theMessage = theMessage.text;
    senderLoad.sendAndLoad("http://qrehab.com.au/mailsend.php", receiveLoad);
    }

    receiveLoad.onLoad = function() {
    if(this.sentOk) {
    _root.gotoAndStop("success");
    }
    else {
    _root.gotoAndStop("failed");
    }
    }

    My php file is:

    <?PHP

    $to = "info@qrehab.com.au";
    $subject = "Q Rehab Contact Form Submission";
    $message = "Name: " . $theName;
    $message .= "\nEmail: " . $theEmail;
    $message .="\n\nMessage: " . $theMessage;
    $headers = "From: $theEmail";
    $headers .= "\nReply-To: $theEmail";

    $sentOk = mail($to,$subject,$message,$headers);

    echo "sentOk=" . $sentOk;

    ?>


    So i click send and i get sending failed!! if i try and test movie from within flash i get Error opening URL 'http://qrehab.com.au/mailsend.php'
    i haved move the php file to all places possible on my server both nothing works!!

    please help
     
  2. varnull

    varnull Guest

    Everywhere? If you are running apache the location you need to have it will be in /home/www/whatever/flash/xxxxx which is where apache and most pre-prepared templates look by default.
    If running anything else you will need to look further into it, including ensuring the swf port is open.. http://uk.php.net/swf

    You have lost me as to why you are trying to send embedded swf with a mail service. Flash is normally served in iframes on pages.

    You need a specialist in flash and flash scripting.. which you aren't going to find on this site.

    Try www.ozzu.com as they know much more about flash and web scripting.
     
    Last edited by a moderator: Apr 13, 2008

Share This Page