query($sql_select_msme); $row = $result_msme->fetch_assoc(); $cid = $_POST['cid']; $optSelected = urlencode($_POST['option-selected']); $formId = $_POST['payment_id']; $pageUrls = $_POST['pageUrl']; $pageUrl = $pageUrls; $current_url ='foodlicenceapply.com'; $ch = curl_init('https://crm2.techlounge.co.in/api/msme-upload-document-status.php?formId='.$formId.'&website='.$current_url.'&optSelected='.$optSelected.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); curl_close($ch); $response; if($response == ',,,,,'){ $ch = curl_init('https://crm2.techlounge.co.in/api/msme-upload-document-status.php?formId='.$formId.'&website='.$current_url.'&optSelected='.$optSelected.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); curl_close($ch); $response; } $array=explode(',',$response); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'foodlicenceapply.com'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@foodlicenceapply.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@foodlicenceapply.com", "FSSAI"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "UPLOAD DOCUMENTS"; $mail->Body = '
FSSAI REGISTRATION FSSAI DOCUMENTATION LINK
Dear Sir,
This mail is in reference to the FSSAI Registration / Licence application submitted by you.

While Submitting your application, You requeted to send Document Submission Link on your email. We request you to Click on the Link below & Upload Your Documents As Soon As Possible.

Delay in submission of documents will lead to delay in processing of your application. We request you once again to submit documents at the earliest.

Alternatively you can whatsapp your documents on +91-6200012753

Your order details are as follows :

Applicant Name:
'.$row['applicant_name'].'
Email:
'.$row['email_id'].'
Mobile Number:
'.$row['mobile_number'].'
Ammount Paid:
'.$row['total_amount'].'
Payment Id:
'.$row['payment_id'].'
Order Id:
'.$row['order_id'].'
Payment Status:
'.$row['payment_status'].'

Regards,
Team Processing

'; $mail->send(); $mail->ClearAllRecipients(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } echo ""; } }