OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/mail_backup.php

<?php
session_start();
if (trim($_SESSION['captchaa'])!=trim($_POST['captcha_code'])){  
		echo "<p style='color:red !important;'>The captcha code does not match!</p>";// Captcha verification is incorrect.
		
}else
{ 
require_once("db/conn.php");
$enq_name=$_POST['enq_name']; 
$city=$_POST['city'];
$yourrole=$_POST['yourrole'];
$email_id=$_POST['email_id'];
$phone=$_POST['phone'];
$description=$_POST['description'];
$exhibitionpatner=$_POST['exhibitionpatner'];

if($enq_name!='' && $city!='' && $yourrole!='' && $phone!='' && $email_id!='' && $exhibitionpatner!='')
{
 $addq="INSERT INTO mc_register_mail (exhibitionpatner,name,yourrole,email_id,phone,city,description,created_on) VALUES ('".$exhibitionpatner."','".$enq_name."','".$yourrole."','".$email_id."','".$phone."','".$city."','".$description."','".date('Y-m-d')."')"; 
  $addr=$connection->query($addq);
  if($addr==true)
{
$to ='support@ultraliant.com';
 $subject = 'New BSPP Registration for MACCIA';
	
	 $message1 ="<table align=\"center\" style=\"border:1px solid #456;border-radius:3px; width:70%; cellpadding:0; cellspacing:1;\">
					<tr style=\"\"><td style=\"text-align:center; padding:15px; font-weight:bold; font-size:20px;\"> New Enquiry details </td></tr>
					<tr>
					<td>
						<table cellpadding=\"6\" style=\"width:100%; cellpadding:0; cellspacing:1; border:1px solid #BEC0CC; border-radius:3px 3px 0px 0px;  padding-bottom:15px;\">
						<tbody>
							<tr style=\"padding-bottom:10px;\">
								<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Name:
								</td>
								<td>
									".$enq_name."
								</td>
							    
							</tr>
							<tr style=\"padding-bottom:10px;\">
								<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Role:
								</td>
								<td>
									".$yourrole."
								</td>
							    
							</tr>

                             <tr style=\"padding-bottom:10px;\">
                               <td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Exhibition Patner:
								</td>
								<td style=\" width:100%;\">
								<p>".$exhibitionpatner."</p>
								</td>							
							</tr>
							<tr style=\"padding-bottom:10px;\">
								<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;City:
								</td>
								<td>
									".$city."
								</td>
							    
							</tr>
							
							<tr style=\"padding-bottom:10px;\">
                               <td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Email:
								</td>
								<td style=\" width:100%;\">
								<p>".$email_id."</p>
								</td>							
							</tr>
							
							<tr style=\"padding-bottom:10px;\">
                               <td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Mobile:
								</td>
								<td style=\" width:100%;\">
								<p>".$phone."</p>
								</td>							
							</tr>
							
							<tr style=\"padding-bottom:10px;\">
                               <td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Description:
								</td>
								<td style=\" width:100%;\">
								<p>".$description."</p>
								</td>							
							</tr>
							
                        </tbody>
						</table>
						</td>
						</tr>
							<tr>
							  <td colspan=\"2\" style=\" width:20%; font-weight:bold;\">
							  This is auto generated email, Please do not reply!
								</td>
								
							</tr>
					</table>";
	//$message1 .='Message: '.$message;
	$emailxy="no-reply@maccia.org.in ";
	$headers = 'From: '.$emailxy. "\r\n". 'Reply-To:no-reply@maccia.org.in' . "\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'X-Mailer: PHP/' . phpversion();

	//if (filter_var($emailid, FILTER_VALIDATE_EMAIL)) 
	//{ // this line checks that we have a valid email address
		if(mail($to, $subject, $message1, $headers)){ //This method sends the mail.
		echo "<p style='color:green !important;'>Your Registration Enquiry Successfully Sent, We Will Get Back You Shortly!</p>"; // success message
	}
	else
	{
		echo "<p style='color:red !important;'>ERROR: Could not send to email.</p>";
	}	
//}
else
{
	echo "Error";
}
}
else
{
	echo "Error ";
} 
}
?>.

xRyukZ - Copyright 2k19