private function sendPaymentEmail($amount) { $mailheader1 = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'From: paypa!@RocketViews.com' . "\r\n" . 'Reply-To: kian.gb@gmail.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $mailheader2 = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'From: paypa!@RocketViews.com' . "\r\n" . 'Reply-To: reza2mussavi@hotmail.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $paypalemail = osBackUserPaypalEmail(); $userID = osBackUserID(); $t = new transaction(""); $trans = $t->backAll(); $u = osBackUser(); $name = strlen($u['userName']) > 0 ? $u['userName'] : "******"; $email = $u['email']; $msg = <<<PHTMLCODE \t\t\tHi,<br /> \t\t\tUserName: <b>{$name}</b> <br /> \t\t\tEmail: <b>{$email}</b> <br /> \t\t\tPaypal Email: <b>{$paypalemail}</b> <br /><br /> \t\t\tAmount: {$amount} \$ <br /> \t\t\t<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business={$paypalemail}&item_name=Withdraw_RocketViews&item_number={$userID}&amount={$amount}¤cy_code=USD"> \t\t\t\tClick Here to Pay \t\t\t</a> <br /><br /> \t\t\t{$trans}<br /><br /> \t\t\tRegards<br /> \t\t\tRocketViews<br /> \t\t\tWithdraw System<br /> \t\t PHTMLCODE; mail("*****@*****.**", "Paypal Withdraw RocketViews", $msg, $mailheader1); mail("*****@*****.**", "Paypal Withdraw RocketViews", $msg, $mailheader2); }