Файловый менеджер - Редактировать - /home/d46091/udyogaadhaar.net/blog-post/images/698279/client-email.php.tar
Назад
home/d46091/udyogaadhaar.net/client-email.php 0000644 00000014150 15026513026 0014616 0 ustar 00 <?php require 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; $sql ="SELECT * FROM msme_form WHERE order_id = '".$orderId."'"; $result = $conn->query($sql); $row = $result->fetch_assoc(); // Mailer $payment_link = 'https://udyogaadhaar.net/Payment.php?cmpnMail='.base64_encode($orderId); // Mailer $host_name ='udyogaadhaar.net'; $website_name = strtoupper($host_name); $mail = new PHPMailer(true); try { $mail->isSMTP(); // $mail->SMTPDebug = 2; $mail->CharSet = 'UTF-8'; $mail->Host = $host_name; $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','UDYOGAADHAAR'); $mail->addAddress($_POST["email_id"]); $mail->isHTML(true); $mail->Subject = "Your ".$_POST['form_name']." Form"; $mail->Body = ' <div style="width:100%; float:left;margin:0;padding:0; background-color: #eee;letter-spacing: 0.3px;"> <div style="width:80%;background-color:#fff;margin:auto;"> <div style="width:100%;float:left;margin:auto;background-color:#fff;"> <div style="width:100%;float:left;margin:auto;background-image:linear-gradient(#1a4171,#1e4a80);text-align: center;border-bottom: 10px solid #f7c025;border-bottom-left-radius: 40%;border-bottom-right-radius: 40%;"> <span style="display:block;color: #fff; font-size:20px;font-weight:700;padding:30px 10px ;font-family:sans-serif;">MSME / UDYAM REGISTRATION</span> </div> </div> <div style="width:100%;float:left;background-color:#fff;text-align: justify;"> <div style="width:80%;margin:auto;background:#fff;padding:0px 10px;"> <p style="text-align: justify;color:#343a40; font-size:17px;font-weight:lighter;padding:10px 0px 0px;font-family:sans-serif;"><b>Dear '.$_POST['applicant_name'].',</b></p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;">Thank you for submitting your application for <b>'.$_POST['form_name'].'</b> on our website.</p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;">This mail is an acknowledgement of successful submission of your application, on our website. This mail does not confirm the payment status against the submitted application.</p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;">If you have already made payment, then please sit back and relax, your order will be processed and acknowledgement of the same will be sent on your registered email address.</p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;">If you have not yet made the payment, processing of your application will not be done unless you make the payment.</p> <p style="text-align: justify;color:#1a4171;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;font-weight: bold;">Click on the link below to make payment.</p> <div style="width:80%; background:#fff;float:left;margin:auto;padding: 10px 0px;"> <button style="text-align: justify;background-color:#f7c025;padding:10px 20px;border: none;"><a href="'.$payment_link.'" style="text-decoration:none; color:#000;font-size:15px;font-family:sans-serif;font-weight: bold;">Pay Here</a></button> </div> <div style="width:80%; background:#fff;float:left;margin:auto;text-align: justify;"> <p style="text-align: justify;color:#343a40;font-size:16px;padding:0px 0px 8px;font-family:sans-serif;font-weight: bold;">Regards,<br> Team Processing, <hr> <span style="text-align:justify; color:#000!important;font-size:11px;"><br>Disclaimer: <br> "The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of <a href="https://udyogaadhaar.net/">udyogaadhaar.net</a></span> </p><br> </div> </div> </div> </div> </div> '; $mail->send(); if($mail){ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $_POST['email_id'], 'amount' => $product_price, 'business' => 'MSME', 'mail_type' => 'Form Submission Mail', 'mailform' => 'sent' ]; $apiUrl = 'https://crm11.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' => 'MSME', 'mailform' => 'notsent' ]; $apiUrl = 'https://crm11.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}"; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка