query($sql_select_gem); $row = $result_gem->fetch_assoc(); $cid = $_POST['cid']; $optSelected = urlencode($_POST['option-selected']); $formId = $_POST['payment_id']; $pageUrls = $_POST['pageUrl']; $pageUrl = $pageUrls.'?cid='.$cid; $current_url ='GEMREGISTRATIONPORTAL.ORG'; $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://crm11.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 = 'gemregistrationportal.org'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@gemregistrationportal.org'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@gemregistrationportal.org", "Gem Registration"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "UPLOAD DOCUMENTS"; $mail->Body = '
GeM REGISTRATION PRIVATE CONSULTANCY SERVICE

Dear Sir,

Greetings for the day!!

AS CHOOSEN BY YOU PLEASE FIND THE UPLOAD LINK BELOW. PLEASE UPLOAD YOUR DOCUMENTS AS SOON AS POSSIBLE.

Thanks,
Team Processing


For Any Concern Please Email Us At : care@gemregistrationportal.org
©2020 Copyright https://gemregistrationportal.org All Rights Reserved

Alternatively, You can also send your documents to the following whatsapp number : +916204958230. Don"t forget to mention your Email Address & mobile number using which the order has been placed.

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