Present Coding:
Code: Select all
<?php
$sendTo = "myemail@mysite.com";
$subject = "Contact from site";
$headers = "From: " . $_POST["name"] . "<" . $_POST["Email"] .">" . "\r\n";
$headers .= "Reply-To: " . $_POST["eEmail"] . "\r\n";
$headers .= "Return-path: " . $_POST["E-mail"];
$message = "The following information has been submitted by " .$_POST["name"] . "\r\n" . "\r\n" . "E-mail Address : " . $_POST["Email"] . "\r\n" . "First Name : " . $_POST["name1"] . "\r\n" . "Last Name : " . $_POST["name2"] . "\r\n" . "Address 1 : " . $_POST["address1"] . "\r\n" . "Address 2 : " . $_POST["address2"] . "\r\n" . "Zip or Post Code : " . $_POST["post_code"] . "\r\n" . "Comments : " . $_POST["comments"];
mail($sendTo, $subject, $message, $headers);
header( 'Location: http://www.mysite.com/thanks.html' ) ;
?>$sendTo = "myemail@mysite.com,myemail2@mysite.com";
That also works but I can't get it to BCC:
My second wish is to send the e-mail back to the person filling in the Form, $_POST["Email"] How is this done?
Any advice would be most appreciated