Файловый менеджер - Редактировать - /home/d46091/public_html/failure.php
Назад
<?php require("config.php"); session_start(); echo "failed"; date_default_timezone_set('Asia/Kolkata'); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; $payment_link = 'https://pmny.in/vrb0P6D2UoEk'; require 'vendor/autoload.php'; if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'RAZORPAY') { $sql = " SELECT * FROM ".$_SESSION['table_id']." WHERE id = '".$_SESSION["form_id"]."'; "; $result = $conn->query($sql); $row = $result->fetch_assoc(); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'msmeregistrar.net'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@msmeregistrar.net'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@msmeregistrar.net", "Udyam Registration"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "Payment Failed For ".$row['form_name'].""; $mail->Body = ' <div style="width:100%;margin:0;padding:0;float:left; font-family:sans-serif;letter-spacing: 0.5px;background:#ddd;"> <div style="width:80%;margin:auto;background:#fff;"> <div style="width:100%;float:left;background-color:#eee;"> <div style="width:100%;float:left;margin:auto;background-image:linear-gradient(#018a6f,#3aae97);text-align: center;border-bottom: 10px solid #b9edea;border-bottom-left-radius: 40%;border-bottom-right-radius: 40%;padding:20px 0px ;"> <img src="https://msmeregistrar.net/assets/img/logo.png" style="height: 30px;margin-bottom: 10px;"> <span style="display:block;color: #fff; font-size:20px;font-weight:700;">MSME / UDYAM REGISTRATION</span> </div> </div> <div style="width: 100%;float :left;background-color: #eee;"> <div style="width: 100%;float :left;background-color: #eee;"> <div style="width: 80%;margin: auto;text-align: justify;background-color: #eee;"> <p style="text-align:left;color:#343a40; font-size:17px;font-weight:lighter;padding:0px 0px 0px;font-family:sans-serif;"><b>Dear '.$row['applicant_name'].',</b></p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;"> This mail is in reference to the '.$row['form_name'].' submitted by you on '.date("Y-m-d H:i:s").' <br><br> <strong style="color:red;">Processing of your '.$row['form_name'].' Is on hold, due to NON PAYMENT of fees.</strong> <br><br> We request you to complete the payment at the earliest to enable us to process your application. Click on the link below to make payment. <Br><br> <div style="width:80%; background:#eee;float:left;margin:auto;padding: 10px 0px;"> <button style="text-align:left;background-image:linear-gradient(#3aae97,#007b63);padding:10px 20px;border: none;"><a href="'.$payment_link.'" style="text-decoration:none; color:#fff;font-size:15px;font-family:sans-serif;">Pay Here</a></button> </div> <div style="width:80%; background:#eee;float:left;margin:auto;text-align: justify;"> <p style="text-align:left;color:#343a40;font-size:16px;padding:0px 0px 8px;font-family:sans-serif;font-weight: bold;">Regards,<br> Team Processing, </div> </div> <div style="width:100%; background:#000;float:left;margin:auto;padding: 0px 0px;"> <div style="width:80%;margin:auto;text-align: justify;"> <p style="text-align:left;color:#fff;font-size:14px;padding:0px 0px 0px;font-family:sans-serif;"> For Order Status: <a href="mail:order@msmeregistrar.net" style="text-decoration:none;color:#fff;font-size:14px;padding:0px 0px 0px;font-family:sans-serif;">order@msmeregistrar.net</a> </p> </div> </div> </div> </div> </div> </div> </div> '; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } }else{ echo ''; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка