"; echo $_POST['email_id']; print_r($_POST); DIE(); require("config.php"); session_start(); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; // $user_pwd = "rzp_live_h9KxRS8Ys88hf0:T2l8S402DcfOzllVPfXvuKjp"; // $post_data = array ( // "customer" => array ( // "name" => $_POST['applicant_name'], // "email" => $_POST['email_id'], // "contact" => $_POST['mobile_number'] // ), // "type" => "link", // "view_less" => 1, // "amount" => (int)$product_price * 100, // "currency" => "INR", // "description" => "Registration Fee", // "reminder_enable" => false, // "sms_notify" => 0, // "email_notify" => 0, // "expire_by" => 1793630556, // "options" => array ( // "checkout" => array ( // "readonly" => array ( // "email" => "1", // "contact" => "1" // ) // ) // ) // ); // $header_data = array ( // "Content-type: application/json" // ); // $curl = curl_init(); // curl_setopt_array($curl, array( // CURLOPT_URL => "https://api.razorpay.com/v1/invoices/", // CURLOPT_USERPWD => $user_pwd, // CURLOPT_RETURNTRANSFER => true, // CURLOPT_ENCODING => "", // CURLOPT_MAXREDIRS => 10, // CURLOPT_TIMEOUT => 0, // CURLOPT_FOLLOWLOCATION => true, // CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, // CURLOPT_CUSTOMREQUEST => "POST", // CURLOPT_POSTFIELDS => json_encode($post_data), // CURLOPT_HTTPHEADER => $header_data // )); // $response = curl_exec($curl); // curl_close($curl); // $data = json_decode($response); // $payment_link = $data->short_url; $payment_link = 'https://pmny.in/vrb0P6D2UoEk'; // Mailer $host_name ='udyogaadhaar.net'; $website_name = strtoupper($host_name); echo $website_name; echo $_POST["email_id"]; $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'udyogaadhaar.net'; $mail->SMTPAuth = true; $mail->Username = 'noreply@udyogaadhaar.net'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("noreply@udyogaadhaar.net", "Udyog Aadhaar"); $mail->addAddress("".$_POST['email_id'].""); $mail->isHTML(true); $mail->Subject = "Your ".$_POST['form_name']." Form Payment Failed"; $mail->Body = '
Dear '.$_POST['applicant_name'].',
This mail is in reference to the '.$row['form_name'].' Application submitted by you on '.$row['form_created_on'].'.
Processing of your '.$row['form_name'].' Application Is on hold, due to NON PAYMENT of fees.
We request you to complete the payment at the earliest to enable us to process your application.
Click on the link below to make payment.
Regards,
Team Processing,