";
$subject = "Message from Luxury Bath";
$recipient = "jon@cws.net";
//$recipient = "ron@luxurybathrochester.com";
$msg = "The following message was received from the 'entry form' on your website:\n\n";
$msg .= "From: $_POST[Name] <$_POST[Email]>\n\n";
$msg .= "Phone: $_POST[Phone]\n\n";
$msg .= "Address: $_POST[Address]\n\n";
$msg .= "City: $_POST[City]\n\n";
$msg .= "State: $_POST[State]\n\n";
$msg .= "Zip: $_POST[Zip]\n\n";
$msg .= "Enter my Home: $_POST[EnterMyHome]\n\n";
$msg .= "Free Estimate: $_POST[FreeEstimate]\n\n";
$msg .= "Authorized to Contact: $_POST[Authorize]\n\n";
if(mail($recipient,$subject,$msg,"From: $sender\r\nReply-To: $sender\r\n")) {
$sent = true;
} else {
$error = "Sorry, there was a problem delivering your message.";
}
}
}
if($error) {
echo "
$error
"; } if($sent) { echo "Your message has been sent. Thanks for contacting us! We will get back to you as soon as possible.
"; } else { ?>