//new [{"sts":true,"msg":"Successfully uploaded","1":null,"2":null,"3":null}] //------------------- Old // header("Access-Control-Allow-Origin: *"); // header("Content-Type: application/json"); // header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTION"); // header("Access-Control-Max-Age: 3600"); // header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); // $to = 'timothi.timothi@gmail.com'; // // subject // $postdata = file_get_contents('php://input'); // $data = json_decode($postdata); // $Name = $data->Name; // $Email = $data->Email; // $Message = $data->Message; // // echo $Name; // $subject = 'Order List Check'; // $message = ' // // // // // // // // // // // // // // // // // //
Name:'.$Name.'
Email:'.$Email.'
Message:'.$Message.'
'; // $headers = 'MIME-Version: 1.0' . "\r\n"; // $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // $abc= substr('sohail',0,8); // $headers .= 'From: '.$abc. "\r\n"; // mail($to, $subject, $message, $headers); // $response[] = array('sts'=>true,'msg'=>'Successfully uploaded','1'=>$Name , '2'=>$Email , '3'=>$Message); // echo json_encode($response); // ?>