Variable email address
Hi...
I would like to capture an email address from a form and send a copy
of the mail to that user. Can anyone give the correct code?
Below is the script I am using.
Thanks for your help.
<?php
/
$sendTo = "peter@xxxxxxxxxxxxxxxxxxxx";
$subject = "New Enquiry";
$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);
$sendTo = ["email"];
?>
.
Relevant Pages
- Re: Best computer PC/network inventory software
... Neither program does everything you want, but you can usually work around things that they don't - for example, creating a script and running that script remotely on all systems to add Asset Tag info. ... Automatically capture PC info over the network, ... (microsoft.public.windows.server.general) - Re: Video and perl
... I have been using your script to capture images from my webcam. ... When i run my serial script it uses 100% of my CPU. ... (perl.beginners) - Re: are there any PHP scripts for parsing FTP logs
... directory path is. ... What I want is a script that can take a few thousand lines that look ... I realize I can do this with PHP string functions, ... ok I'm assuming you just want to capture the CD commands. ... (comp.lang.php) - Re: [PHP] ob_start: Capturing STDOUT and STDERR
... to capture the output of a shell script and place it into a log file. ... This will capture the output buffer until the shell terminates when the ... (php.general) - ob_start: Capturing STDOUT and STDERR
... to capture the output of a shell script and place it into a log file. ... This will capture the output buffer until the shell terminates when the ... (php.general) |
|