I’ve got this php code to send the users information from the contact form to my email address, but i don’t know how to send a confirmation email back to the user when he fills out the form.
<?
$name = $_REQUEST['name'] ;
$company = $_REQUEST['company'] ;
$areacode_telephone = $_REQUEST['areacode_telephone'] ;
$telephone = $_REQUEST['telephone'] ;
$email = $_REQUEST['email'] ;
$notes = $_REQUEST['notes'] ;
$body = " Name: ".$name."\n
Company: ".$company."\n
Area Code: ".$areacode_telephone."\n
Telephone: ".$telephone."\n
Email Address: ".$email."\n
Notes: ".$notes;
mail( "info@axsiom.com.au", "Axsiom: Contact Us", $body, "From: $email" );
?>
You are just reusing the same variables in a different combination using the same function just to send it back to them.
Tada.
To send the same message to both you and them use:
To send a different message to both you and them use: