⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
skvewasterecycling.com
/
resources
/
views
/
View File Name :
popup_model.blade.php
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; //require_once "vendor/autoload.php"; @include('PHPMailer-master.src.Exception.php'); @include('PHPMailer-master.src.PHPMailer.php'); @include('PHPMailer-master.src.SMTP.php'); $method = $_SERVER['REQUEST_METHOD']; if($method=='POST') { //$receiver_email="arunk.ninosit@gmail.com"; $receiver_email="vencky1990@gmail.com"; // $cc_mail_address = array('matthew@ninositsolution.com','ecphasisinfotech2008@gmail.com'); $subject="CONTACT US ENQUIRY"; $sender_name=$_POST['name']; $sender_mobile=$_POST['mobile']; $sender_email=$_POST['email']; $sender_message=$_POST['message']; $honeypot = $_POST['firstname']; $mail = new PHPMailer(true); try { $mail->Host = 'hostname'; // SMTP host as gmail $mail->SMTPAuth = true; // enable smtp authentication $mail->Username = 'info@skvewasterecycling.com'; // sender gmail host $mail->Password = 'Info@skv$ewaste'; // sender gmail host password $mail->SMTPSecure = 'ssl'; // for encrypted connection $mail->Port = 587; // port for SMTP $mail->setFrom($sender_email, $sender_name); // sender's email and name $mail->addAddress($receiver_email, "Vencky"); // receiver's email and name $mail->AddCC('matthew@ninositsolution.com'); $mail->AddCC('ecphasisinfotech2008@gmail.com'); $mail->Subject = $subject; // $mail->Body = "Name : ". $sender_name."\r\n" . "Mobile : " . $sender_mobile . "\r\n" . "Email : " . $sender_email . "\r\n" . "Subject : " . $subject . "\r\n" . "Message : " . $sender_message; $mail->isHTML(true); $content = '<html> <head> <style type="text/css"></style> </head> <body> <div style="width: 100%;margin:0px auto;;font-family:calibri;"> <div style="width:100%;margin-top: 10px;float:left;"> <h4 style="margin-top: 10px;background-color:#282828;color:#fff;letter-spacing: 1px;border-radius:4px; padding: 10px;font-size:18px;">Enquiry From '.$sender_name.' </h4> <table style="width:100%;border:1px solid #ccc;padding:7px;margin:1em 0px"> <h1 style="text-transform:uppercase;color:#ff5361">SKV E-WASTE</h1> <tbody> <tr style="height:35px;line-height:35px;border-bottom:1px solid #ddd;"> <td style="width:50%;">Name</td> <td style="text-indent:20px;"> '.$sender_name.'</td> </tr> <tr style="height:35px;line-height:35px;border-bottom:1px solid #ddd;"> <td style="width:50%">E-mail</td> <td style="text-indent:20px;"> '. $sender_email.'</td> </tr> <tr style="height:35px;line-height:35px;border-bottom:1px solid #ddd;"> <td style="width:50%">Mobile Number</td> <td style="text-indent:20px;"> '.$sender_mobile.'</td> </tr> <tr style="height:35px;line-height:35px;border-bottom:1px solid #ddd;"> <td style="width:50%">Message</td> <td style="text-indent:20px;"> '.$sender_message.'</td> </tr> </tbody> </table> <p><strong>Note:</strong>This email is automatically generated from the website www.skvewasterecycling.com if you feel anything wrong kindly contact the support team</p><br> <p>Thanks And Regards<br> Ninositsolution<br> IT Develop Team and promotion Team<br> +044-43852285<br> </p> </div> </body> </html>'; $mail->Body = $content; //check if the honeypot field is filled out. If not, send a mail. if( ! empty( $honeypot ) ){ header('Location:enquiry-confirmation.php'); }else{ $mail->send(); } header('Location:enquiry-confirmation.php'); } catch (Exception $e) { // handle error. echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo; } } ?>