PHP Form

Out of context: Reply #1

  • Started
  • Last post
  • 1 Response
  • enobrev0

    //should get you started
    $from =
    $to = $_GET['to_email'];
    $subject = $_GET['subject'];
    $message = $_GET['message'];

    mail($to, $subject, $message, 'From: ' . $from);

    // you'll want to check your data as well as check that the form data is sent from your form (via ip check or something) but that's the barebones basics of a mail script that sends according to parameters sent from elsewhere (ie flash)

    good luck!

View thread