success) && $data->success === true) { $to = "riedelfarms@yahoo.com"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $fname = $_POST['fname']; $lname = $_POST['lname']; $phone_no = $_POST['phone_no']; $message1=$_POST['message']; $subject="Contact Us Enquiry From Riedel Farm LLC"; /*$subject2 = "NAME : " .$fname." ".$lname."
". "Phone Number : ".$phone_no."
". "Property Address : " .$property_address."
". "Property Description : " .$property_description."
Plesae check above informarion given by you.";*/ $message1 ="Dear Riedel Farms Staff,\n\n My information is as below,\n\n". "Name : " .$fname." ".$lname." \n\n". "Email id : ".$from."\n\n". "Phone Number : ".$phone_no." \n\n". "message : " .$message1." \n\n\nThank you."; // $message2 = "Here is a copy of your message " . $fname . "\n\n" . $_POST['message']; $headers = "From:" . $from; // $headers2 = "From:" . $to; $mail=mail($to,$subject,$message1,$headers); if($mail){ $msg="Mail Sent. Thank you " . $fname . ", we will contact you shortly."; } else { $msg=print_r(error_get_last()); } } else { $captcha_msg="Please verify that you are not a robot."; $msg="Please verify that you are not a robot."; } } // mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender //$msg="Mail Sent. Thank you " . $fname . ", we will contact you shortly."; // You can also use header('Location: thank_you.php'); to redirect to another page. } ?>

Contact Us