Файловый менеджер - Редактировать - /home/d46091/drivinglicencehelp.com/client-email.php
Назад
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; ini_set('display_errors', 1); ini_set('display_startup_errors', 1); date_default_timezone_set('Asia/Kolkata'); $date=date('d-m-Y H:i:s'); error_reporting(E_ALL); require 'vendor/autoload.php'; // Mailer #$payment_link = 'https://drivinglicencehelp.com/Payment.php?cmpnMail='.base64_encode($orderId); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->SMTPDebug = 2; $mail->CharSet = 'UTF-8'; $mail->Host = 'smtp.hostinger.com'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@drivinglicencehelp.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('no-reply@drivinglicencehelp.com', 'drivinglicencehelp.com'); $mail->addAddress($email_id); $mail->isHTML(true); $mail->Subject = "⚠️Ref : Your Payment Failed For ".$row['form_name']." Form"; $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;text-align:center;background-color:#f8f8f8;"> <div style="width:100%;text-align:center;padding: 0px 0px 0px 0px;background-image:linear-gradient(#012221,#012221);border-bottom-left-radius: 40px;border-bottom-right-radius: 40px;border-bottom: 15px solid #116fbb;"> <div style="width:100%;text-align:center;padding: 10px 0px 20px 0px;border-bottom-left-radius: 40px;border-bottom-right-radius: 40px;"> <div style="margin:auto;padding:10px 0px 0px;"> <span style="font-size:18px;color:#fff;font-family:sans-serif;font-weight: bold;">PRIVATE PORTAL FOR DRIVING LICENCE APPLICATION GUIDANCE</span> </div> </div> </div> <div style="width:100%;float:left;text-align:justify;padding:0px 0px;margin:auto;background:#f1f8ff;"> <div style="width:80%;margin:auto;padding:10px 50px 30px 50px; "> <p style="font-size:16px;color:#212529;font-family:sans-serif;font-weight:bold;">Dear '.$_POST["applicant_name"].',</p> <p style="font-size:15px;color:#212529;font-family:sans-serif;"> This mail is in reference to the <b>'.$_POST["form_name"].'</b> submitted by you on 08-11-2023 16:21:44. </p> <p style="font-size:15px;color:#212529;font-family:sans-serif;"> Processing of your<b>'.$_POST["form_name"].'</b> Application Is on hold, due to NON PAYMENT of fees. </p> <span style="font-size:15px;color:#212529;font-family:sans-serif;">We request you to complete the payment at the earliest to enable us to process your application.</span><br> <p style="font-size:15px;color:#212529;font-family:sans-serif;"> Click on the link below to make payment. </p> <button style="background-color:#ff8c00;padding:8px 15px;border: none;"><a href="'.$payment_link.'" style="text-decoration:none; color:#fff;font-size:15px;font-family:sans-serif;font-weight: bold;">Pay Here</a> </div> </div> <div style="width:100%;background-image:linear-gradient(#0b60a4,#05579e);float:left;margin:auto;padding:0px 0px;"> <div style="width:80%;margin:auto;text-align: left;text-align: justify;"> <p style="font-size:15px;color:#fff;font-family:sans-serif;text-align: left;">Regards,<br> Team Processing,</p> </div> <div style="width:80%;margin:auto;text-align: justify;"> <p style="font-size:15px;color:#fff;font-family:sans-serif; font-weight: bold;"> For Order Status: <a href="mailto:order@drivinglicencehelp.com" style="color:#fff;text-align: left;">order@drivinglicencehelp.com</a> </p> </div> </div> </div> </div> '; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } die; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка