/
var
/
www
/
html
/
stengineers
/
admin
/
api
/
Upload FileeE
HOME
<?php header('Access-Control-Allow-Origin: *'); // require_once('dbconnection.php'); error_reporting(E_ALL); // $action = $_POST['action']; // $ref = $_POST['referer']; require "mailer/PHPMailerAutoload.php"; $mail = new PHPMailer; $mail->IsSMTP(); $mail->Host = 'sanbrix.com'; // Specify main and backup server $mail->Port = 465; // Set the SMTP port $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'contact@sanbrix.com'; // SMTP username $mail->Password = '7?*5TJ)oCb_B'; // SMTP password $mail->SMTPSecure = 'ssl'; // Enable encryption, 'ssl' also accepted $mail->setFrom('maya@sanbrix.com',"Thanks for Your Interest!"); $mail->AddAddress('vaidheeshwari@eziosolutions.com', "Thanks for Your Interest!"); // Add a recipient $mail->IsHTML(true); // Set email format to HTML $mail->Subject = "Thanks for Your Interest! "; $mail->Body = "<p>Welcome to Sanbrix! <br>Thanks for reaching us. <br><b>Your Gateway to a Richer Life is Not Far Away </b> <br>We appreciate the time you took to inquire about our services. Our team will get back to you shortly <br>We're super excited to provide our exclusive services to you. <br><br><br>Creating Real Value in Property & Places! <br><br>Thanks <br>Have a great day! </p> "; if(!$mail->send()) { $json['message']= "We were unable to send your request.Please try again"; } else { $mail = new PHPMailer; $mail->IsSMTP(); $mail->Host = 'sanbrix.com'; // Specify main and backup server $mail->Port = 465; // Set the SMTP port $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'contact@sanbrix.com'; // SMTP username $mail->Password = '7?*5TJ)oCb_B'; // SMTP password $mail->SMTPSecure = 'ssl'; // Enable encryption, 'ssl' also accepted $mail->setFrom('maya@sanbrix.com',"Enquiry Form "); $mail->AddAddress("vaidheeshwari@eziosolutions.com", "Enquiry Form "); // Add a recipient $mail->IsHTML(true); // Set email format to HTML $mail->Subject = "Alert for New User Inquiries! "; $mail->Body = "<p> Good News! A new user request has been submitted with the following information. <b>Have a great day!</b></p>"; if(!$mail->send()) { } else { } $json['message']= "Your request has been sent successfuly"; } echo $json; ?>