<?php
if(!isset($_POST['submit'])){
$to = "
[email protected]"; // this is your Email address
$email = $_POST['email']; // this is the sender's Email address
$name = $_POST['name'];
$company = $_POST['company'];
$message = $name . " " . $email . " ". $company;
$headers = "From:" . $from;
$headers2 = "From:" . $to;
mail($to,$message,$headers);
mail($from,$headers2,$headers2,$message); // sends a copy of the message to the sender
echo "Mail Sent. Thank you " . $first_name . ", we will contact you shortly.";