Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/u615232177/domains/adesmiley.com/public_html/ |
<?php use PHPMailer\PHPMailer\PHPMailer;use PHPMailer\PHPMailer\Exception;use PHPMailer\PHPMailer\SMTP; session_start();
$page_name = basename($_SERVER['PHP_SELF']);
include("header.php"); ?>
<title><?php echo $company_name; ?>, Contact us</title>
<?php $pics=array("1","2","3");
$random_pic = array_rand($pics);
?>
<?php
$msg='';$captcha_error=""; $errors=0;
if (isset($_POST["send_message"])) {
//include("captcha_start.php");
if($errors == 0){
$subject = mysqli_real_escape_string($con,$_POST['subject']);
$last_name = mysqli_real_escape_string($con,$_POST['last_name']);
$first_name = mysqli_real_escape_string($con,$_POST['first_name']);
$email = mysqli_real_escape_string($con,$_POST['email']);
$message1 = mysqli_real_escape_string($con,$_POST['message']);
$msg = '';
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';
require 'PHPMailer/src/Exception.php';
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "smtp.titan.email"; // sets the SMTP server
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Set encryption to STARTTLS
$mail->Port = 587; // Use port 587 for TLS
$mail->Username = "$no_reply_email"; // SMTP account username
$mail->Password = "$no_reply_password"; // SMTP account password
$mail->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from address
$mail->AddReplyTo("$email","$email"); //Put the submitter's address in a reply-to header
$mail->Subject = "$subject";
$mail->MsgHTML("<html><body>$message1</body></html>");
$mail->AddAddress("$company_email", "Contact Form");//Send the message to yourself, or whoever should receive contact for submissions
//$mail->AddAttachment(""); // attachment
if(!$mail->Send()) {
//echo "Mailer Error: " . $mail->ErrorInfo;
$msg = "<div class='alert alert-danger'>
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
<b>Something went wrong, please try again</b>
</div>";
}
else {
$msg = "<div class='alert alert-success'>
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
<b>Email Sent</b>
</div>";
}
//email an autoresponse to the person too
$mail->clearAddresses();
$mail->clearReplyTos();
$subject1 = "Thanks for contacting us"; // form field
$email_topic = "Thanks for contacting us";
$button_link = "$link/sign_in.php";
$button_text = "Login";
$message="";
include("email_header.php");
$message .= "
Dear $first_name,<br/><br/>
Thank you for reaching out to us! We have received your message and our team is already reviewing it. You will hear from us soon with an update.
<br/><br/>
The $company_name Team.<br/>
$email_logo
";
include("email_footer.php");
$mail->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from add
$mail->AddAddress("$email", "$email");//Send the message to yourself, or whoever should receive contact for submissions
$mail->AddReplyTo("$company_email", "$company_name"); //Put the submitter's address in a reply-to header
$mail->Subject = "$subject1";
$mail->MsgHTML("<html><body>$message<br></body></html>");
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
$msg = "Email not sent, please try again Mailer Error: ".$mail->ErrorInfo;
}
else {
//echo "Thanks for getting in touch, we will get back to ASAP";
$msg = "<span style='color:steelblue;'>Hey $first_name thanks for getting in touch with us, we will get back to you very shortly!</span>";
}
}
}
?>
<!-- Page Header Start -->
<div
class="container-fluid header-bg py-5 mb-5 wow fadeIn"
data-wow-delay="0.1s"
>
<div class="container py-5">
<h1 class="display-4 text-white mb-3 animated slideInDown">
Contact Me
</h1>
<nav aria-label="breadcrumb animated slideInDown">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">
<a class="text-white" href="#">Home</a>
</li>
<li class="breadcrumb-item">
<a class="text-white" href="#">Pages</a>
</li>
<li class="breadcrumb-item text-primary active" aria-current="page">
Contact Me
</li>
</ol>
</nav>
</div>
</div>
<!-- Page Header End -->
<!-- Contact Start -->
<div class="container-xxl py-5">
<div class="container">
<div class="row g-4 mb-5">
<div class="col-lg-6 wow fadeInUp" data-wow-delay="0.1s">
<div class="h-100 bg-light d-flex align-items-center p-5">
<div class="btn-lg-square bg-white flex-shrink-0">
<i class="fa fa-map-marker-alt text-primary"></i>
</div>
<div class="ms-4">
<p class="mb-2">
<span class="text-primary me-2">#</span>Address
</p>
<h5 class="mb-0"><?php echo $company_address; ?></h5>
</div>
</div>
</div>
<div class="col-lg-6 wow fadeInUp" data-wow-delay="0.3s">
<div class="h-100 bg-light d-flex align-items-center p-5">
<div class="btn-lg-square bg-white flex-shrink-0">
<i class="fa fa-phone-alt text-primary"></i>
</div>
<div class="ms-4">
<p class="mb-2">
<span class="text-primary me-2">#</span>Call Now
</p>
<h5 class="mb-0"><?php echo $company_phone; ?></h5>
</div>
</div>
</div>
<div class="col-lg-6 wow fadeInUp" data-wow-delay="0.3s">
<div class="h-100 bg-light d-flex align-items-center p-5">
<div class="btn-lg-square bg-white flex-shrink-0">
<i class="fab fa-whatsapp text-primary"></i>
</div>
<div class="ms-4">
<p class="mb-2">
<span class="text-primary me-2">#</span>Whatsapp Chat
</p>
<h5 class="mb-0"><?php echo $company_whatsapp; ?></h5>
</div>
</div>
</div>
<div class="col-lg-6 wow fadeInUp" data-wow-delay="0.5s">
<div class="h-100 bg-light d-flex align-items-center p-5">
<div class="btn-lg-square bg-white flex-shrink-0">
<i class="fa fa-envelope-open text-primary"></i>
</div>
<div class="ms-4">
<p class="mb-2">
<span class="text-primary me-2">#</span>Mail Now
</p>
<h5 class="mb-0"><?php echo $company_email; ?></h5>
</div>
</div>
</div>
</div>
<div class="row g-5">
<div class="col-lg-6 wow fadeInUp" data-wow-delay="0.1s">
<p><span class="text-primary me-2">#</span>Contact Me</p>
<h1 class="display-5 mb-4">Do You Have Any Question? Please Contact Me.</h1>
<p class="mb-4">
Do you have any comments,questions or remarks? I would love to hear from you, feel free to get in touch via email, phone or simply drop a message in the form below.
</p>
<p class="mb-4"><?php echo $msg; ?></p>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
<div class="row g-3">
<div class="col-md-6">
<div class="form-floating">
<input
type="text"
class="form-control bg-light border-0"
id="name"
placeholder="First Name"
name='first_name'
required
/>
<label for="name">First Name</label>
</div>
</div>
<div class="col-md-6">
<div class="form-floating">
<input
type="text"
class="form-control bg-light border-0"
id="last_name"
placeholder="Last Name"
name='last_name'
required
/>
<label for="last_name">Last Name</label>
</div>
</div>
<div class="col-md-6">
<div class="form-floating">
<input
type="email"
class="form-control bg-light border-0"
id="email"
name='email'
placeholder="Your Email"
required
/>
<label for="email">Your Email</label>
</div>
</div>
<div class="col-md-6">
<div class="form-floating">
<input
type="text"
class="form-control bg-light border-0"
id="subject"
placeholder="Subject"
name='subject'
required
/>
<label for="subject">Subject</label>
</div>
</div>
<div class="col-12">
<div class="form-floating">
<textarea
class="form-control bg-light border-0"
placeholder="Leave a message here"
id="message"
style="height: 100px"
name='message'
required
></textarea>
<label for="message">Message</label>
</div>
</div>
<div class="col-12">
<button class="btn btn-primary w-100 py-3" name='send_message' type="submit">
Send Message
</button>
</div>
</div>
</form>
</div>
<div class="col-lg-6 wow fadeInUp" data-wow-delay="0.5s">
<div class="h-100" style="min-height: 400px">
<iframe
class="rounded w-100 h-100"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d7227.420073867111!2d55.129673491751404!3d25.07781522864428!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3e5f14aa5ff87ec7%3A0x93485470e77f2b7a!2sJumeirah%20Beach%20Residence%20-%20Dubai%20-%20United%20Arab%20Emirates!5e0!3m2!1sen!2sng!4v1696949292610!5m2!1sen!2sng"
frameborder="0"
allowfullscreen=""
aria-hidden="false"
tabindex="0"
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
></iframe>
</div>
</div>
</div>
</div>
</div>
<!-- Contact End -->
<?php include("footer.php"); ?>