Файловый менеджер - Редактировать - /home/d46091/udyamonlineregistration.org/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'; $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 = 'udyamonlineregistration.org'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@udyamonlineregistration.org'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@udyamonlineregistration.org", "Udyam Registration"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "Payment Failed For ".$row['form_name'].""; $mail->Body = ' Dear <strong>'.$row['applicant_name'].'</strong>, <br><br> 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> <a href="'.$payment_link.'" style="background: #e54f07; color: #ffffff; text-decoration: none; padding: 10px; margin-top: 20px; display: inline-flex;">Pay Here</a> <br><br> Regards,<br> Team Processing,<br> For Order Status: order@udyamonlineregistration.org '; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка