Welcome, Guest
  • Author Topic: Help with this mail form please  (Read 1264 times)

    warnar

    • Server what's that
    • *
    • Posts: 25
      • View Profile
      • Email
    Help with this mail form please
    « on: 01/06/03, 14:26 »
    Hi there

    I was bizzy making a mail form for my site so ppl could send me some comment but i can't seem to get it right so maybe someone of u could help me this is the way my from in flash i build i have 4 input feelds with var Name's like:
    Naam
    Onderwerp
    Bericht
    Email

    They are all on root then i have a Button send with this option actionscripts:

    on (release) {
    if (_root.Naam eq "" or _root.Onderwerp eq "" or _root.Bericht eq "" or _root.Email eq "") {
    stop();
    } else {
    loadVariablesNum("send.php", 0, "POST");
    _root.gotoAndStop(2);
    }
    }

    Then i have this PHP code in my send.php:

    <?

      $to = "<<-My E-mail->>";
      $msg = "$Naam\n\n";
      $msg .= "$Bericht\n\n";
      $subject = "$Onderwerp";

     mail($to, $subject, $msg, "From: Site 3\nReply-To: $Email\n");

    ?>

    Can someone please tell me what i am doing wrong (my host provides the mail function).

    Thanks very mutch allready

    Warnar

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:Help with this mail form please
    « Reply #1 on: 01/06/03, 17:26 »
    First simply load the PHP script (giving the variables) in order to see if the problem is there. If it works, then you can check the Flash side. I.e

    <?php

     $to = "myEmail@mydomin.com";
     $msg = "Hello, test message";
     $subject = "Test message";

     mail($to, $subject, $msg);

    ?>

    Simply load the page and check if you receive the mail

    Jorge