isSMTP(); //$mail->SMTPDebug = 2; $mail->CharSet = 'UTF-8'; $mail->Host = $host_name; $mail->SMTPAuth = true; $mail->Username = 'no-reply@efoodlicence.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('no-reply@efoodlicence.com', $website_name); $mail->addAddress($_POST['email_id']); $mail->addBcc("udyogaadhaaronline.org@gmail.com"); $mail->isHTML(true); $mail->Subject = "⚠️Ref : Your ".$_POST['form_name']." Form"; $mail->Body = "

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

Thank you for submitting your application for ".$_POST["form_name"]." on our website.


This mail is an acknowledgement of successful submission of your application, however this mail does not confirm the payment status against the submitted application.


If you have already made payment, then please sit back and relax, your order will be queued up for processing. If any documents will be required, you will be intimated regarding the same on your registered email address.


If you have not yet made the payment, click on the link below to make the payment. Processing of your application will be done only after payment is confirmed.


Regards,
Team Processing,
For Order Status: order@efoodlicence.com

"; $mail->send(); $mail->ClearAllRecipients(); $mail->addAddress("udyogaadhaaronline.com@gmail.com"); $mail->isHTML(true); $mail->Subject = "New Form Submitted For ".$_POST["form_name"].""; $mailBody = ''; // foreach ($_POST as $key => $value) { // if (!empty($value)) { // $capitalizedKey = ucfirst($key); // $mailBody .= "$capitalizedKey: $value
\n"; // } // } // $mail->Body = $mailBody; // if($mail){ // $data = [ // 'email_id' => $mail->Username, // 'recipient_email' => $_POST['email_id'], // 'amount' => $product_price, // 'business' => 'FSSAI', // 'mail_type' => 'Form Submission Mail', // 'order_id' => $orderId, // 'mailform' => 'sent' // ]; // $apiUrl = 'https://crm4.techlounge.co.in/api/mail-data-logs.php'; // $ch = curl_init($apiUrl); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt($ch, CURLOPT_POST, true); // curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); // $response = curl_exec($ch); // curl_close($ch); // }else{ // $data = [ // 'email_id' => $mail->Username, // 'recipient_email' => $_POST['email_id'], // 'amount' => $product_price, // 'business' => 'FSSAI', // 'mailform' => 'notsent' // ]; // $apiUrl = 'https://crm4.techlounge.co.in/api/mail-data-logs.php'; // $ch = curl_init($apiUrl); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt($ch, CURLOPT_POST, true); // curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); // $response = curl_exec($ch); // curl_close($ch); // } } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?>