db_connect(); global $db_host, $db_user, $db_pass, $db_name; $dcon=mysqli_connect($db_host, $db_user, $db_pass, $db_name) or die(mysqli_error()); $Query=$dbCon->slctQuery('contacts','*','where ID=1'); $row=mysqli_fetch_array($Query); extract($row); // Adding BotDetect Captcha to the page $ExampleCaptcha = new Captcha("ExampleCaptcha"); $ExampleCaptcha->UserInputID = "CaptchaCode"; $ExampleCaptcha->CodeLength = 5; $ExampleCaptcha->ImageWidth = 250; $ExampleCaptcha->CustomLightColor = "Black"; $ExampleCaptcha->CustomDarkColor = "White"; $ExampleCaptcha->ImageStyle = ImageStyle::BlackOverlap; $bErr = false; $cErr = false; // when the form is submitted if($_POST){ // validate the Captcha to check we're not dealing with a bot $isHuman = $ExampleCaptcha->Validate(); if (!$isHuman) { // Captcha validation failed, show error message $msg = "You have entered the wrong code!"; $bErr = true; } else { // Captcha validation passed, perform protected action $rname = $_POST['name']; $remail = $_POST['email']; $rphone = $_POST['phone']; $rlocprob =$_POST['location']; $rservrequest = $_POST['request']; $renterapt = $_POST['enterapt']; $raptnum = $_POST['appnumber']; require 'phpmailer/PHPMailerAutoload.php'; //$mail->SMTPDebug = 3; // Enable verbose debug output $mail = new PHPMailer(true); $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'secure.emailsrvr.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'leasing@rentaptsonline.com'; // SMTP username $mail->Password = '%56yMyO7Wbpg'; // SMTP password $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 465; // TCP port to connect to $mail->CharSet = 'UTF-8'; $mail->setFrom('leasing@rentaptsonline.com', ''.$rname.' | RentAptsOnline.Com | TheMultifamilyNetwork'); $mail->addAddress('villaknolls@ctmapartmentservices.com'); $mail->addReplyTo($remail); $mail->addBCC('internal@rentaptsonline.com'); $mail->addBCC('rentaptsonline@gmail.com'); $mail->isHTML(true); // Set email format to HTML $mail->Subject = '🏠 New RAO Service Request | www.RentVillaKnolls.Com'; $mail->Body = '

Villa Knolls Apartments 
By The CTM Company
Email Subject: Service Request
Resident Name: '.$rname.'
Contact Phone No: '.$rphone.'
Email: '.$remail.'
Apartment No: '.$raptnum.'
Enter Apartment: '.$renterapt.'
Location of Problem: '.$rlocprob.'
Service Requested: '.htmlentities($rservrequest).'
'; //Auto-Reply Email Codes $mail2 = new PHPMailer(true); $mail2->isSMTP(); // Set mailer to use SMTP $mail2->Host = 'secure.emailsrvr.com'; // Specify main and backup SMTP servers $mail2->SMTPAuth = true; // Enable SMTP authentication $mail2->Username = 'leasing@rentaptsonline.com'; // SMTP username $mail2->Password = '%56yMyO7Wbpg'; // SMTP password $mail2->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted $mail2->Port = 465; // TCP port to connect to $mail2->CharSet = 'UTF-8'; $mail2->setFrom('leasing@rentaptsonline.com', 'RentVillaKnolls.Com | Service Request'); $mail2->addAddress($remail); $mail2->addReplyTo($remail); $mail2->isHTML(true); // Set email format to HTML $autoconvert = htmlspecialchars_decode($SERVICEREQ, ENT_COMPAT); $autodecode = html_entity_decode($autoconvert); $autoclean = strip_tags($autodecode); $mail2->Subject = '🏠 Auto Reply Email From Service Request | www.RentVillaKnolls.Com'; $mail2->Body = '

Villa Knolls Apartments 
By The CTM Company
'.$autoclean.'
Email Subject: Service Request
Resident Name: '.$rname.'
Contact Phone No: '.$rphone.'
Email: '.$remail.'
Apartment No: '.$raptnum.'
Enter Apartment: '.$renterapt.'
Location of Problem: '.$rlocprob.'
Service Requested: '.htmlentities($rservrequest).'
This is a system-generated e-mail. This email was sent from a notification-only address that cannot accept incoming email. Please do not reply.
'; if(substr_count($rservrequest,'a href=')==0 && substr_count($rservrequest,'www.')==0 && substr_count($rservrequest,'http://')==0 && substr_count($rservrequest,'src=')==0 && substr_count($rservrequest,'.exe')==0 && substr_count($rservrequest,'.php')==0 && substr_count($rservrequest,'.net')==0 && substr_count($rservrequest,'.com')==0) { if(!$mail->send()) { echo 'Message could not be sent. '; } else { $mail2->send(); header ('location: 91942-request-done.html#index-content'); } } else { $cErr = true; } } } $Query=mysqli_query($dcon, "Select * from service where Cid=1")or die(mysqli_error()); $service=mysqli_fetch_array($Query); extract($service); ?>

Villa Knolls Apartment Lifestyle, For Rent Apts - La Mesa 91942 | RentVillaKnolls.Com

Html(); ?>
'.$msg.'
'; } else{} ?>