:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/greenboxwood.com/**
:: Editing File: contact-process.php
<?php header('Content-Type: application/json'); if($_SERVER['REQUEST_METHOD']!='POST'){ echo json_encode([ "status"=>"error", "message"=>"Invalid Request" ]); exit; } $name = trim($_POST['name']); $company = trim($_POST['company']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $product = trim($_POST['product']); $message = trim($_POST['message']); $to = "info@greenboxwood.com"; $subject = "New Website Enquiry"; $body = " New Website Enquiry Name : $name Company : $company Email : $email Phone : $phone Product : $product Message : $message "; $headers = "From: ".$email."\r\n"; $headers .= "Reply-To: ".$email."\r\n"; $headers .= "Content-Type:text/plain;charset=UTF-8"; if(mail($to,$subject,$body,$headers)) { echo json_encode([ "status"=>"success", "message"=>"Your enquiry has been submitted successfully." ]); } else { echo json_encode([ "status"=>"error", "message"=>"Unable to send enquiry." ]); } ?>