I have made a form in Flash with the usual boxes to fill in ("name", "message" etc.)

Using the code below, I am able to get an e-mail sent to my address. Great! ... BUT ... I only get the subject and the message. There is no "From: ..." (so I'm not sure how I will set up the rest of what I need on my form, name, address, etc.)

what am I doing wrong?
Thanks!!

<?php

$sendTo = "andrew@studio209.com";
$subject = "My Flash site reply";

$headers = "From: " . $POST["name"];
$headers .= "<" . $
POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $POST["email"]\r\n;
$headers .= "Return-Path: " . $
POST["email"];
$message = $_POST["message"];

mail($sendTo, $subject, $body, $headers);

?>

    From: blah@blah.com
    must be a valid formated email address to be received. can not be a name.
    If you want to display a name in the from area of a received email, you must add < .. > in the code.

    $header = "From: name<blah@blah.com>";

      Sorry! I didn't explain that very well.

      In the message area of the e-mail, I want to have all of the form data appear. So if the user types in their name, address, phone, etc. it will appear in the e-mail like:

      Name: Joe Blow
      Address: 1234 Oak Street
      Phone: 503-222-2356
      message: "This is a great website..."

      So far, all I'm getting is:

      1. the form is generating an e-mail which is being sent back to me ...good.
      2. The e-mail has something in the subject line ...good.
      3. text that is typed into the "message" box shows up in the e-mail ...good.

      But I'm not getting the "name", Address" , etc.
      Does that make sense?

        Originally posted by sroberts209
        Sorry! I didn't explain that very well.

        In the message area of the e-mail, I want to have all of the form data appear. So if the user types in their name, address, phone, etc. it will appear in the e-mail like:

        Name: Joe Blow
        Address: 1234 Oak Street
        Phone: 503-222-2356
        message: "This is a great website..."

        So far, all I'm getting is:

        1. the form is generating an e-mail which is being sent back to me ...good.
        2. The e-mail has something in the subject line ...good.
        3. text that is typed into the "message" box shows up in the e-mail ...good.

        But I'm not getting the "name", Address" , etc.
        Does that make sense? [/B]

        I makes sense. I'm just not sure why you would get that info since it should be part of $body and you haven't shown us how you create $body.
        Here's what I have done in the past. You should be qble to modify it to fit your needs:

        $body = 'Name: '.$_POST["Name"]. ' 
        Email: ' . $_POST["Email"] . '
        Date: ' .date("D M dS,Y h:i a") . '
        
        Comments: ' . $_POST["Comments"] ;
        
          Write a Reply...