query($sql); $row = $result->fetch_assoc(); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'msmeregistrar.net'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@msmeregistrar.net'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@msmeregistrar.net", "MSME Registrar"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "Payment Successful For ".$row['form_name'].""; $mail->Body = '
MSME REGISTRATION PRIVATE CONSULTANCY SERVICE

Dear '.$row['applicant_name'].',

Your payment for '.$row['form_name'].' is successful.

Your order details are as follows :
Applicant Name:
'.strtoupper($row["applicant_name"]).'
Email:
'.strtoupper($row['email_id']).'
Mobile Number:
'.strtoupper($row['mobile_number']).'
Amount Paid:
'.strtoupper($row['total_amount']).'
Payment Id:
'.strtoupper($row["payment_id"]).'
Order Id:
'.strtoupper($row['order_id']).'
Payment Status:
Paid

Regards,
Team Processing,
Note:
1) Your application along with payment has been received and the same will be processed by our experts in next 24 - 48 working hours.
2) At the time of processing, one link will be sent to you for OTP collection. We collect OTP only through system generated automatic links, linked to clients application to reduce human intervention.
3) Normally certificate generation takes 2-3 working days. However due to restrictions placed by COVID-19, this may take longer than usual.
We expect your cooperation for the same.

For Order Status / Queries / Grievance Click Here

'; $mail->send(); $mail->ClearAllRecipients(); $mail->addAddress("no-reply@msmeregistrar.net"); $mail->isHTML(true); $mail->Subject = "Payment Received For ".$row["form_name"].""; $mail->Body = " APPLICANT NAME: ".$row["applicant_name"]."
EMAIL ID: ".$row['email_id']."
MOBILE NUMBER: ".$row['mobile_number']."
AMOUNT PAID: ".$row['total_amount']."
PAYMENT ID: ".$row["payment_id"]."
ORDER ID: ".$row['order_id']."
PAYMENT STATUS: Paid "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } }else{ echo ''; } ?> SUCCESS | MSME Registrar
query($sql); $row = $result->fetch_assoc(); } $id= $row['id']; $formName = 'UDYAM Registration,Re Registration'; $paymentId =$row['payment_id']; //select form id from cid// $sql_select_cid ="SELECT *FROM cid WHERE uid = '".$id."'; "; $result_cid = $conn->query($sql_select_cid); $row_cid = $result_cid->fetch_assoc(); $cid = $row_cid['cid']; $pageUrl = 'https://'.$_SERVER['HTTP_HOST'].'/'.$row['form_page_url'].'?cid='.$cid.''; if($row['payment_status']!='Paid') { echo ""; }else{ ?>
YOUR PAYMENT FOR HAS BEEN SUCCESSFULLY COMPLETED.
ACKNOWLEDGEMENT OF THE PAYMENT HAS BEEN SENT ON YOUR EMAIL ADDRESS !
NOW PROCEED TO UPLOAD YOUR DOCUMENTS TO COMPLETE YOUR APPLICATION:
अब अपना आवेदन पूरा करने के लिए अपने दस्तावेज़ अपलोड करने के लिए आगे बढ़ें:

PAYMENT SUCCESSFUL
ORDER DETAILS
APPLICANT NAME
EMAIL ID
MOBILE NUMBER
AMOUNT PAID
PAYMENT ID
ORDER ID
PAYMENT ID
ORDER ID
PAYMENT STATUS