MINI Sh3ll
<?php
//print_r($_POST); exit();
session_start();
include('admin/config/mysql_crud.php');
$db = new Database();
$db->connect();
require_once('PHPMailer/class.phpmailer.php');
if((!empty($_REQUEST['name'])) && (!empty($_REQUEST['companyName'])) && (!empty($_REQUEST['email'])) && (!empty($_REQUEST['contact'])) && (!empty($_REQUEST['comments']))) {
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPDebug =1;
$mail->Debugoutput = 'html';
/* $host_server="localhost";
$mail1->Host = $host_server;
$mail1->Port = 25; */
$host_server="email-smtp.ap-south-1.amazonaws.com";
$mail->Host = $host_server;
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "AKIAU2W326NUCQA3RVNK";
$mail->Password = "BLpw2EyqMf4/nzp/kdInPC2uD6eau8W0u2K56ARt5tBs";
//$mail->AddAddress('[email protected] ');
//$mail->AddAddress('[email protected]');
//$mail->AddAddress('[email protected]');
//$mail->AddAddress('[email protected]');
//$mail->AddAddress('[email protected]');
$mail->AddAddress('[email protected]');
$mail_subject = "SmartCirqls : Contact form enquiry";
$mail_body = '<div class="container" style="max-width: 35rem; border: 1px solid #ddd; margin: 0 auto; margin-top: 50px; display:block;">
<div class="header" style="background-color: #005593; color: #fff; text-align: center; font-size:20px;">
<table width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="300" style="background-color: #e80e88; border-bottom: 1px solid #ddd;">
<img src="images/footerLogo.png" style="padding: 5px 10px 0px 10px;">
</td>
</tr>
</tbody>
</table>
</div>
<div class="row">
<div class="col-lg-12">
<p style="padding:5px 20px; color: #000;"> <strong> Hi Team, </strong> </p>
<p style="padding:5px 20px; color: #000;">New contact form enquiry as follows:</p>
<p style="padding:0px 20px; color: #000;"> <strong> Name : </strong> '.$_REQUEST['name'].'</p>
<p style="padding:0px 20px; color: #000;"> <strong> Conpany Name : </strong> '.$_REQUEST['companyName'].'</p>
<p style="padding:0px 20px; color: #000;"> <strong> Email : </strong> '.$_REQUEST['email'].'</p>
<p style="padding:0px 20px; color: #000;"> <strong> Contact Number : </strong> '.$_REQUEST['contact'].'</p>
<p style="padding:0px 20px; color: #000;"> <strong> Comments : </strong> '.$_REQUEST['comments'].'</p>
<p style="padding:0px 20px; color: #000;"> <strong> Page : </strong> '.$_REQUEST['page'].'</p>
<p style="padding:0px 20px; color: #000;">Thanks,</p>
<p style="padding:0px 20px; color: #000;">SmartCirqls Team.</p>
</div>
</div>
<footer class="footer" style="background: #e4e4e4;">
<p style="text-align: center; padding: 10px 20px; color: #737477; font-weight: bold; margin-top: 0px; margin-bottom: 0px;">Copyright ©SmartCirqls 2012-2019. All rights reserved.</p>
</footer>
</div>';
//$mail->setFrom('[email protected]');
$mail->setFrom('[email protected]');
$mail->Subject = $mail_subject;
$mail->msgHTML($mail_body);
if (!$mail->send()){
echo 0;
} else {
$db->insert('contact_enquiries',array('name'=>$_REQUEST['name'], 'companyName'=>$_REQUEST['companyName'], 'email'=>$_REQUEST['email'], 'contact'=>$_REQUEST['contact'], 'comments'=>$_REQUEST['comments'], 'page'=>$_REQUEST['page']));
echo 1;
}
}
?>
OHA YOOOO