2 Replies Latest reply on Feb 15, 2010 10:52 AM by Ned Murphy

    Send mail, returns no info, ActionSript or PHP issue?

    ommvc61 Level 1

      I set up a site with a page following Lee Brimelow's "Sending Mail with PHP" tutorial. All is set up and done, and functions with one exception, the delivered email does not contain any of the inputted information in the form.

       

      e.g. - I get the "Subject line", but the rest looks like this:

       

      Name:
      Email:
      Phone:

      theBuilddate:

      theLot:

       

      Message:

       

      Information entered on the contact form is not returning in the email. (Also, it does not return a "From" input, so I get no sender information on the delivered email.

       

      Can anyone help? I will happily copy and send my ActionScript and/or PHP page code. I've triple checked it all. -Frustrated!

       

      Using Dreamweaver CS4, Flash CS4, on a Mac.

        • 1. Re: Send mail, returns no info, ActionSript or PHP issue?
          Ned Murphy Adobe Community Professional & MVP

          You'll need to show your code for anyone to be able to offer any help.

          • 2. Re: Send mail, returns no info, ActionSript or PHP issue?
            ommvc61 Level 1

            It's an Actionscript 2.0 file. Here's the code: (PHP page follows).

             

            stop();

             

            var senderLoad:LoadVars = new LoadVars();

            var receiveLoad:LoadVars = new LoadVars();

             

            sender.onRelease = function() {

            senderLoad.theName = theName.text;

            senderLoad.theEmail = theEmail.text;

            senderLoad.thePhone = thePhone.text;

            senderLoad.theBuilddate = theBuilddate.text;

            senderLoad.theLot = theLot.text;

            senderLoad.theMessage = theMessage.text;

            senderLoad.sendAndLoad("http://betaclient2.ommvc.com/send.php",receiveLoad);

            }

             

            receiveLoad.onLoad = function() {

            if(this.sentOk) {

            _root.gotoAndStop("success");

            }

            else {

            _root.gotoAndStop("failed");

            }

            }

             

             

            PHP page code:  (name "send.php)

             

            <?PHP

             

            $to = "dan.ommvc@comcast.net";

            $subject = "Custom Home Inquiry";

            $message = "Name: " . $theName;

            $message .= "\nEmail: " . $theEmail;

            $message .= "\nPhone: " . $thePhone;

            $message .= "\nBuilddate: " . $theBuilddate;

            $message .= "\nLot: " . $theLot;

            $message .= "\n\nMessage: " . $theMessage;

            $headers = "From: $theEmail";

            $headers .= "\nReply-To: $theEmail";

             

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

             

            echo "sentOk=" . $sentOk;

             

            ?>