[insert_php]
$to = ‘niksprofitness@gmail.com’;
$fname = $_REQUEST[‘first_name’];
$lname = $_REQUEST[‘last_name’];
$email= $_REQUEST[’email’];
$address1= $_REQUEST[‘address1’];
$address2= $_REQUEST[‘address2’];
$created_date = date(‘Y-m-d’);
$item_name = $_POST[‘item_name’];
$item_number = $_POST[‘item_number’];
$payment_status = $_POST[‘payment_status’];
$pending_reason=$_POST[‘pending_reason’];
$payment_fee=$_POST[“payment_fee”];
$payment_amount = $_POST[‘mc_gross’];
$payment_currency = $_POST[‘mc_currency’];
$txn_id = $_POST[‘txn_id’];
$receiver_email = $_POST[‘business’];
$payer_email = $_POST[‘payer_email’];
$phone = $_POST[“custom”];
$subject = $item_name.’ order in Paypal’;
$message = ‘Order Details

Name: ‘.$fname.’ ‘.$lname.’
Phone: ‘.$phone.’
Payment status: ‘.$payment_status.’
Item name: ‘.$item_name.’
Amount : ‘.$payment_amount.’
Transaction id: ‘.$txn_id.’
Payer email: ‘.$payer_email.’
Created date: ‘.$created_date.’
———————————————–
Best Regards,

Niksperformance
‘;

$headers = ‘From: no-reply@paypal.com’ . “\r\n” .
‘MIME-Version: 1.0’ . “\r\n” .
‘Content-type: text/html; charset=utf-8’;
if(mail($to, $subject, $message, $headers))
{
echo “send successfully”;
}
else
{
echo “opps”;
}
[/insert_php]