alert('Invalid Verification Code'); history.back();"); } } require 'vendor/autoload.php'; $applicant_name = urlencode($_POST['applicant_name']); $mobile_number = urlencode($_POST['mobile_number']); $email_id = urlencode($_POST['email_id']); $form_name = urlencode($_POST['form_name']); // Tech Lounge if (isset($_POST['form_id'])&& $_POST['form_id'] == 'udyam_enquiry') { if($_POST['product'] == "Udyam Registration"){ $form_link = ''; }elseif ($_POST['product'] == "Udyam Re-Registration") { $form_link = 're-registration.php'; } elseif ($_POST['product'] == "Udyam Certificate Update") { $form_link = 'update-udyam-certificate.php'; } elseif ($_POST['product'] == "Cancel Udyam Registration") { $form_link = 'cancel_registration.php'; }else { $form_link = ''; } $form_link= "https://".$crm_website."/".$form_link ; $sql=" INSERT INTO msme_form ( form_name, applicant_name, mobile_number, email_id, docs, form_created_on ) VALUES ( '".$_POST["form_name"]."', '".$_POST["applicant_name"]."', '".$_POST["mobile_number"]."', '".$_POST["email_id"]."', '".$_POST["product"]."', '".$date."' )"; if (!$result = $conn->query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } else { $_SESSION["form_id"] = $conn->insert_id; $ch = curl_init('https://crm11.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=MSME&website='.$crm_website.'&amount=ENQUIRY&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&formName='.urlencode($_POST["product"]).''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $ch = curl_init('https://crm2.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=MSME&website='.$crm_website.'&amount=ENQUIRY&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&formName='.urlencode($_POST["product"]).''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Mailer $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'udyogaadhaar.net'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@udyogaadhaar.net'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@udyogaadhaar.net", "EUDYOGAADHAAR"); $mail->addAddress("".$_POST["email_id"].""); $mail->isHTML(true); $mail->Subject = "Your ".$_POST["form_name"]." Submitted Successfully"; $mail->Body = '
MSME / UDYAM REGISTRATION SERVICES

Dear '.$_POST["applicant_name"].',

Greetings for the Day !!

This mail is in reference to your enquiry submitted on '.$crm_website.'.

Please click here to read the FAQs, in order to clear your doubts, if any.

After your queries are answered, pls click here to Submit an application for registering your business under MSME / Udyam.

Regards

Team MSME / Udyam


Note : After the payment is done, Customer Service Agents will call you to collect details and process your application. (During Office Hours 10.00 am - 5.30 pm)

'; $mail->send(); $mail->ClearAllRecipients(); $mail->addAddress("no-reply@udyogaadhaar.net"); $mail->isHTML(true); $mail->Subject = "New ".$_POST["form_name"]." Submitted"; $mail->Body = " APPLICANT NAME: ".$_POST["applicant_name"]."
MOBILE NUMBER: ".$_POST['mobile_number']."
EMAIL ID: ".$_POST['email_id']."
"; $mail->send(); } catch (Exception $e) { // echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } echo ""; echo ""; }