error_reporting(0);
session_start();
$sessSecurity = $_SESSION['security_code'];
$reqSecurity = $_REQUEST['security_code'];
$your_key = '7d148ab182add47aa19adf28eab3f8c6bce07d95dddffe8962f1277754500803';
//$your_key = 'd42e3faa890d93163645875bcf7e10f2';
if(isset($_POST['Submit']))
{
$Name = $_REQUEST['Name'];
$EmailId = $_REQUEST['EmailId'];
$ip = $_REQUEST['ip'];
$city1 = $_REQUEST['city1'];
$state1 = $_REQUEST['state1'];
$country1 = $_REQUEST['country1'];
//$Subject1 = 'Sales Query';
$Message = $_REQUEST['Message'];
require_once'smtp/class.phpmailer.php';
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "mail5.jodoshared.com"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "
[email protected]"; // SMTP username
$mail->Password = "rUKWtS#p"; // SMTP password
$mail->From = $EmailId;
$mail->FromName = $Name;
//////////////////////////////////////////////$mail->AddAddress($EmailComp);
$mail->AddAddress("
[email protected]");
//$mail->AddAddress("
[email protected]");
//$mail->AddAddress("
[email protected]");
//$mail->AddCC("
[email protected]");
$mail->IsHTML(true);
//$mail->WordWrap = 100; // set word wrap to 50 characters
//$msg12= "This is the body in plain text for non-HTML mail clients";
$mail->Subject = 'Sales Query';
//$mail->Body = $msg12;
$MsgString = '
Name | : | '.$Name.' |
Email | : | '.$EmailId.' |
Message | : | '.$Message.' |
|
IP Address | : | '.$ip.' |
City | : | '.$city1.' |
State | : | '.$state1.' |
Country | : | '.$country1.' |
';
$mail->Body = $MsgString;
//$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
if($_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
if($mail->Send())
{
//header("location:vpshosting/linux-vps-cloud_new.php?msg=msg");
$msg = "
Message Sent successfully !";
}
} else {
$msg = "
Please enter valid Security Code";
}
}
?>