21 Replies Latest reply on Feb 3, 2009 7:36 AM by kglad

    Sending an Email with PHP - having problems

      Hi, I'm working with actionscript 2.0 in flash cs3 and trying to get input text to POST to my email.php file which in turn will mail that info to my email account. I'm having no luck, i get no email at all, and can not figure out why. As far as i can tell, everything is set up properly. I don't think it's an issue with GoDaddy's hosting... but im not certain. Help would be greatly appreciated! here the php code i have:

      $sendTo = "myemail@yahoo.com";
      $subject = "site reply";
      $headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
      $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
      $headers .= "Return-path: " . $_POST["email"];
      $message = $_POST["message"];
      mail($sendTo, $subject, $message, $headers);

      all the vars seem to be named correctly.

      and this is what the submit button does.

      on (release) {
      form.loadVariables("email.php", "POST");