<?php

 $to= 'adeyemibamigbola@gmail.com';
 $subject= 'New check mail2';
 $message = "<h1>".'Hello Adeyemi'."</h1><p>".'Message reaching you from testing mail'."</p>";
 //$message = htmlentities($message);
 $headers = "From: The mail tester name <bamigbolaam@oscotechesaoke.edu.ng\r\n";
 $headers .= "Reply To: bamigbolaam@oscotechesaoke.edu.ng\r\n";
 $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
 mail($to, $subject, $message, $headers);
echo 'Mail sent';


                // $to = 'adeyemibamigbola@gmail.com';
                // $subject = "OSCOTECH ePayment System Details!";
                // $body = "Dear " . 'Bamigbola' . ",";
                // $body .= PHP_EOL . PHP_EOL . "Your ePayment Transaction was Successful. Below is your payment details:.";
                // echo '<br/><br/>';
                // // $body .= PHP_EOL . "Response Code: " . $json["ResponseCode"];
                // // $body .= PHP_EOL . "Response Description: " . $json["ResponseDescription"];
                // // $body .= PHP_EOL . "Payment Reference: " . $json["PaymentReference"];
                // // $body .= PHP_EOL . "Transaction Reference: " . $_POST['txnref'];
                // // $body .= PHP_EOL . "Transaction Amount: " . $json["Amount"];
                // // $body .= PHP_EOL . "Transaction Date: " . $json["TransactionDate"];
                // // $body .= PHP_EOL . PHP_EOL . PHP_EOL . "------------------------" . PHP_EOL . "Thanks";
                // $body = stripslashes($body);
                // $headers = "From: no.reply@oscotechesaoke.edu.ng";
                // $headers .= PHP_EOL;
                // $headers .= "Return-Path: no.reply@oscotechesaoke.edu.ng";
                // $headers .= PHP_EOL;
                // $headers .= "Reply-To: no.reply@oscotechesaoke.edu.ng";
                // mail($to, $subject, $body, $headers);

?>