|
Posted by cartoonsmart on 12/08/05 15:12
Hi I got the following script going;
<?php
$sendTo = "myemail@myemail.com";
$subject = "My web 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, $message, $headers);
?>
It's simple and save and I'm not really into php (yet!)...
However I have a question regarding my script.
In the Email body/message I receive after the form is filled in and
submited
I only see the message - obvousily because of this line $message =
$_POST["message"]; -
Now I would like to receive to name and email address in mail
body/message to.
How do I go about to achieve this, I've tried the following...
$message = $_POST["name"];
$message = $_POST["email"];
after I added the above two lines it didn't result in anything.
Anyone wanna fill me in on how I can put this to work.
Thank, appreciate it!
Navigation:
[Reply to this message]
|