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/quick-form.php
<?php
ini_set('sendmail_from', 'garima@hrreflections.com'); 
//ini_set('SMTP','206.183.111.202');
//ini_set('smtp_port',25); 

	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 = "careers@hrreflections.com"; // GMAIL username
 $mail->Password = "venusapril"; // GMAIL password
}


$toEmail = "garima@hrreflections.com, ritesh@hrreflections.com,anuradha@hrreflections.com" ;
//$toEmail ="info@hrreflections.com" ;
$fromEmail = $_REQUEST['email'] ; 
//$fromEmail1 ="info@new-horizon.co.in"; 
$subject = "Enquiry from hrreflections.com" ;
$thankyouurl = "http://www.hrreflections.com/thankyou.html" ;
$uself = 1;

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

$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
$Cname = $_POST['cname'] ;
$Designation = $_POST['designation'] ;
$Phone = $_POST['phone'] ;
$Mobile = $_POST['mobile'];
$Email = $_POST['email'] ;
$Website = $_POST['website'] ;
$Address = $_POST['address'] ;
$Msg = $_POST['requirements'] ;


$messageproper =

	"------------------------------------------------------------\n" .
	


	"Name: $Cname\n" .
	"Designation: $Designation\n" .
	"Phone: $Phone\n" .
	"Mobile: $Mobile\n" .
	"Email: $Email\n" .
    "Website: $Website\n" .
	"Address: $Address\n" .
    "Employee Requirements: $Msg\n" .

    "\n\n------------------------------------------------------------\n" .
	"Regards\n" . 
	"HR Reflections\n" ;


mail($toEmail, "Enquiry from HR Reflections", $messageproper, "From: info@hrreflections.com" . $headersep . "BCC: eclients@savit.in"  );


mail($fromEmail, "Autoreply from hrreflections.com", $messageproper,
	"From: HR Reflections <info@hrreflections.com>" . $headersep . "Reply-To: info@hrreflections.com" );


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