Файловый менеджер - Редактировать - /home/d46091/gemregistrationonline.org/client-email.php
Назад
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; $payment_link = 'https://gemregistrationonline.org/Payment.php?cmpnMail='.base64_encode($orderId); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'gemregistrationonline.org'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@gemregistrationonline.org'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@gemregistrationonline.org", "GEM Registrar"); $mail->addAddress("".$_POST['email_id'].""); $mail->isHTML(true); $mail->Subject = "Your ".$_POST['form_name']." Form Submitted Successfully!"; $mail->Body = ' <div style="width:100%; float:left;margin:0;padding:0; background-color: #eee;"> <div style="width:80%;background-color:#fff;margin:auto;"> <div style="padding:30px 0px 30px 0px;text-align:center;background-image:linear-gradient(#07222e,#07222e);border-bottom-left-radius: 30px;border-bottom-right-radius:30px;border-bottom: 4px solid #a0a0a0;"> <span style="display:block;color:#fff;font-size:25px;font-weight:700;font-family:sans-serif;">GEM REGISTRATION SERVICE</span> </div> <div style="width:100%;background-color:#fff;text-align:left;padding-top:20px;"> <div style="width:80%;margin:auto;text-align:left;"> <span style="font-family:sans-serif;color:#000;font-size:17px;">Dear <b>'.$_POST['applicant_name'].',</b></span> <p style="font-family:sans-serif;color:black;font-weight:bold;font-size:16px;">Thank you for submitting your application for '.$_POST["form_name"].' on our website.</p> <p style="font-family:sans-serif;font-weight:bold;font-size:16px;">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="font-family:sans-serif;font-weight:bold;font-size:16px;">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="font-family:sans-serif;color:black;font-weight:bold;font-size:16px;">If you have not yet made the payment, processing of your application will not be done unless you make the payment. <br><br> Click on the link below to make payment. <br><br> <a href="'.$payment_link .'" style="text-decoration:none;color:#fff;font-size:15px;font-family:sans-serif;background:#e6720f;padding:10px" target="_blank">Verify & Pay Here</a> </p> </div> </div> <div style="width:100%;background-image:linear-gradient(#07222e,#07222e);margin-top:30px;"> <div style="width:80%;margin:auto;text-align:left;"> <p style="padding:20px 0px 20px 0px; font-family:sans-serif;text-align:left;color:#fff;font-size:16px;">Regards,<br> Team Processing<br> </p> </div> </div> </div> </div> '; $mail->send(); if($mail){ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $_POST['email_id'], 'amount' => $product_price, 'business' => 'GEM', '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' => 'GEM', '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); } // header ('location: ../success.php'); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка