D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
junglebellresort.com
/
Filename :
contact.php
back
Copy
<?php $site_title = "Contact Us || Jungle Bell Resort, Lataguri"; ?> <!DOCTYPE html> <html lang="en-US"> <head> <?php include'style.php'; ?> </head> <body> <?php include'header.php'; ?> <div class="contact_sec pt-0 pb-0"> <div class="map_div"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14257.407216091102!2d88.75848466783891!3d26.70120578368862!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39e475e0946f7971%3A0x10bb992c3d0b0d54!2sJungle%20Bell%20Resort!5e0!3m2!1sen!2sin!4v1655284831478!5m2!1sen!2sin" width="100%" height="500" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> </div> </div> <div class="main_contact_area style_three pt-50 pb-40"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-6"> <div class="section_title text_left mb-50 mt-3"> <div class="section_sub_title uppercase mb-3"> <h6>Contact Info</h6> </div> <div class="section_main_title"> <h1>We are here for You</h1> </div> <div class="em_bar"> <div class="em_bar_bg"></div> </div> </div> <div class="contact_address"> <div class="contact_address_company mb-3"> <ul> <li><img src="assets/images/icons/location.png"><span>Jharmatiali, Lataguri, Near Lataguri Railway Station, Jalpaiguri-735219</span></li> <li><img src="assets/images/icons/phone.png"><span><a href="tel:+91 9830060224">+91 98300 60224</a> | <a href="tel:+91 9830060424">+91 98300 60424</a> </span></li> <li><img src="assets/images/icons/email.png"> <a href="mailto:junglebellresort@outlook.com">junglebellresort@outlook.com</a></li> </ul> </div> </div> </div> <div class="col-lg-6"> <div class="contact_from"> <div class="contact_from_box"> <div class="contact_title pb-1"> <h3>Contact Us !</h3> </div> <form action="" method="POST"> <div class="row"> <div class="col-lg-12"> <div class="form_box mb-20"> <input type="text" name="name" placeholder="Name"> </div> </div> <div class="col-lg-12"> <div class="form_box mb-20"> <input type="email" name="email" placeholder="Email Address" required> </div> </div> <div class="col-lg-12"> <div class="form_box mb-20"> <input type="tel" name="phone" placeholder="Mobile Number" required> </div> </div> <div class="col-lg-12"> <div class="form_box mb-20"> <input type="text" name="subject" placeholder="Subject *"> </div> </div> <div class="col-lg-12"> <div class="form_box mb-20"> <textarea name="message" id="message" cols="30" rows="3" placeholder="Write a Message"></textarea> </div> <div class="quote_btn"> <button class="btn" name="submit_contact" type="submit">Send Message <i class="fa fa-paper-plane ml-1"></i></button> </div> </div> </div> </form> </div> </div> </div> </div> </div> </div> <?php include'footer.php'; ?> </body> </html> <?php if(isset($_POST['submit_contact'])){ $phone = $_POST['phone']; $email = $_POST['email']; $name = $_POST['name']; $subject = $_POST['subject']; $message = $_POST['message']; $date = date("d/m/Y"); $html="<table> <tr><td>Booking Enquiry</td></tr> <tr><td>Date :</td><td>$date</td></tr> <tr><td>Name :</td><td>$name</td></tr> <tr><td>Mobile :</td><td>$phone</td></tr> <tr><td>Email :</td><td>$email</td></tr> <tr><td>Subject :</td><td>$subject</td></tr> <tr><td>Message :</td><td>$message</td></tr> </table>"; // echo $html; include('smtp/PHPMailerAutoload.php'); $mail=new PHPMailer(true); // $mail->SMTPDebug = 3; // $mail->SMTPDebug = SMTP::DEBUG_SERVER; $mail->isSMTP(); $mail->Host="smtp.outlook365.com"; $mail->SMTPSecure="STARTTLS"; $mail->Port=465; $mail->SMTPAuth=true; $mail->Username="junglebellresort@outlook.com"; $mail->Password="Junglebell@2002"; $mail->SetFrom('junglebellresort@outlook.com', 'Jungle Bell'); $mail->addAddress("junglebellresort@outlook.com"); // $mail->addReplyTo(''junglebellresort@outlook.com', 'Jungle Bell'); $mail->IsHTML(true); $mail->Subject="New Contact Enquiry"; $mail->Body=$html; $mail->SMTPOptions=array('ssl'=>array( 'verify_peer'=>false, 'verify_peer_name'=>false, 'allow_self_signed'=>false )); if($mail->send()){ echo "<script>alert('Thankyou for booking.');</script>"; }else{ echo "<script>alert('Booking mail not send.');</script>"; } } ?>