Initial checkin
This commit is contained in:
18
postForward.php
Normal file
18
postForward.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
//$data = json_decode(file_get_contents('php://input'), true);
|
||||
$data = file_get_contents('php://input');
|
||||
|
||||
// Always set content-type when sending HTML email
|
||||
$headers = "MIME-Version: 1.0" . "\r\n";
|
||||
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
|
||||
|
||||
// More headers
|
||||
$headers .= 'From: <webmaster@netsquat.com>' . "\r\n";
|
||||
$result=mail ("webmaster@i-buy.properties","new From", $data, $headers);
|
||||
|
||||
if($result){
|
||||
echo '{"status":"success"}';
|
||||
} else {
|
||||
echo '{"status":"error"}';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user