Файловый менеджер - Редактировать - /home/d46091/udyogaadhaaronline.org/client-email.php
Назад
<?php require_once("config/db.php"); include_once('vendor/autoload.php'); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; function generateRandomInvoice($length = 10) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $randomInvoice = ''; for ($i = 0; $i < $length; $i++) { $randomInvoice .= $characters[rand(0, $charactersLength - 1)]; } return $randomInvoice; } //custom payment page// $rand = generateRandomInvoice(); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); date_default_timezone_set('Asia/Kolkata'); $payment_link = 'https://udyogaadhaaronline.org/Payment.php?cmpnMail='.base64_encode($orderId); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'udyogaadhaaronline.org'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@udyogaadhaaronline.org'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('no-reply@udyogaadhaaronline.org', "UDYOGAADHAARONLINE.ORG"); $mail->addAddress("".$_POST["email_id"].""); $mail->isHTML(true); $mail->addBcc("udyogaadhaaronline.org@gmail.com"); $mail->Subject = "Ref : Your ".$_POST["form_name"].""; $mail->Body = ' <div style="width:100%; float:left;margin:0;padding:0; background-color: #eee;"> <div style="width:90%;background-color:#fff;margin:auto;"> <div style="border-bottom: 8px solid #f5821f;border-bottom-left-radius: 30px;border-bottom-right-radius:30px;"> <div style="padding:10px 0px 10px 0px;text-align:center;background:#fff;border-top:8px solid #183661;border-bottom-left-radius: 30px;border-bottom-right-radius:30px;border-bottom: 8px solid #183661;"> <span style="display:block;">MSME REGISTRATION PRIVATE CONSULTANCY SERVICE</span> </div> </div> <div style="padding:30px;font-size:17px"> Dear <strong>'.$_POST["applicant_name"].'</strong>, <br><br> This mail is in reference to the '.$_POST["form_name"].' Application submitted by you on . <br><br> Processing of your '.$_POST["form_name"].' Is on hold, due to NON PAYMENT of fees. <br><br> We request you to complete the payment at the earliest to enable us to process your application. <br><br> <span style="color:#d86400;font-weight:bold">Click on the link below to make payment.</span> <br><br><br> <a href="'.$payment_link.'" style="text-decoration:none;color:#fff;font-size:15px;font-family:sans-serif;background:#138496;padding:10px" target="_blank">Verify & Pay Here</a> </div> <div style="width:100%;background-image:linear-gradient(#000b5a,#050a30);margin-top:20px;border-top: 8px solid #f5821f;border-top-left-radius: 30px;border-top-right-radius:30px;"> <div style="width:90%;margin:auto;text-align:left;"> <p style="padding:0px 5px 15px; font-family:sans-serif;text-align:left;color:#fff;font-size:16px;">Regards,<br> Team Processing<br> <a href="https://udyogaadhaaronline.org"style="color:white !important">www.udyogaadhaaronline.org</a> </p> </div> </div> </div> </div> '; $mail->send(); $mail->ClearAllRecipients(); $mail->addAddress('udyogaadhaaronline.org@gmail.com'); $mail->isHTML(true); $mail->Subject = "New ".$_POST["form_name"]." Form Submitted"; $mail->Body = " "; $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
|
Настройка