Hunter Bajwa
Server: Microsoft-IIS/7.5
System: Windows NT EGAL 6.1 build 7601
User: IUSR_hrreflections (0)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: C:/inetpub/vhosts/hrreflections.com/httpdocs/mail-BK/contact.php
<?php

ini_set('max_execution_time','150');

if($send_using_gmail){
 $mail->IsSMTP(); // telling the class to use SMTP
 $mail->SMTPAuth = true; // enable SMTP authentication
 $mail->SMTPDebug  = 2;
 $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
 $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
 $mail->Port = 465; // set the SMTP port for the GMAIL server
 $mail->Username = "garima@hrreflections.com"; // GMAIL username
 $mail->Password = "gauri28610"; // GMAIL password
}
//ini_set("SMTP","173.194.79.109");
//ini_set("SMTP","74.125.129.108");
//ini_set("smtp_port","465"); 
//ini_set("smtp_port","25");

//$toEmail = "host@savit.in" ;
//$toEmail = "contact@hrreflections.com";
$toEmail = "contact@hrreflections.com,ritesh@hrreflections.com,anuradha@hrreflections.com";
$fromEmail = $_REQUEST['email'] ; 
$subject = "Enquiry recieved on hrreflections.com" ;
$formurl = "http://www.hrreflections.com" ;
$errorurl = "http://www.hrreflections.com/error.html" ;
$thankyouurl = "http://www.hrreflections.com/thankyou.html" ;




$uself = 1;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;

$Name = $_POST['cname'] ;
$Designation = $_POST['designation'];
$Phone = $_POST['phone'];
$Mobile = $_POST['mobile'];
$Email = $_POST['email'] ;
$Website = $_POST['website'];
$Address = $_POST['address'];
$TaskDetails = $_POST['requirements'] ;


$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
	header( "Location: $formurl" );
	exit ;
}
if (empty($Name)  || empty($Email)) 

{

header( "Location: $errorurl" );
   exit ;
}
if ( ereg( "[\r\n]", $Name ) || ereg( "[\r\n]", $Email )) {
	header( "Location: $errorurl" );
	exit ;
}

if (get_magic_quotes_gpc()) {
	$TaskDetails = stripslashes( $TaskDetails );
}


$messageproper =

	"This message was sent from:\n" .
	"$http_referrer\n" .
	"------------------------------------------------------------\n" .
	"Company Name: $Name\n" .
	"Designation: $Designation\n" .
	"Phone: $Phone\n" .
	"Mobile: $Mobile\n" .
	"Email: $Email\n" .
	"Website: $Website\n" .
	"Address: $Address\n" .
						
	"------------------------- Comment -------------------------\n\n" .
		$TaskDetails .

	"\n\n------------------------------------------------------------\n" .
	"Regards\n" . 
	"hrreflections.com\n" ;

mail($toEmail, "Enquiry recieved on hrreflections.com", $messageproper, "From: hrreflections.com <garima@hrreflections.com>" . $headersep . "X-Mailer: chfeedback.php 2.07"  );


mail($fromEmail, "Autoreply from hrreflections.com", $messageproper,
	"From: hrreflections.com <garima@hrreflections.com>" . $headersep . "Reply-To: garima@hrreflections.com" . $headersep . "X-Mailer: chfeedback.php 2.07" );


header( "Location: $thankyouurl" );
exit ;

?>