MMCT TEAM
Server IP : 86.38.243.181  /  Your IP : 216.73.216.86
Web Server : LiteSpeed
System : Linux in-mum-web1336.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u986601745 ( 986601745)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u986601745/domains/namastedevbhoomiadventureandtour.in/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u986601745/domains/namastedevbhoomiadventureandtour.in/public_html/mail.php
<?php
include('smtp/PHPMailerAutoload.php');

//--------------- Quick Query -------------------

if(isset($_POST['pick'])){
    $phone = $_POST['phone'];
    $pick = $_POST['pick'];
    $drop = $_POST['drop'];
    $date = $_POST['date'];
    $time = $_POST['time'];

    $html = '<html>
    <head>
    <title>Taxi Booking Details</title>
    </head>
    <body>
    <h1>Taxi Booking Details</h1>
    <table>
    <style>
    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td, table th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    <tr>
    <td><b>Phone Number - </b></td>
    <td>'.$phone.'</td>
    </tr>
    <tr>
    <td><b>Pickup Location - </b></td>
    <td>'.$pick.'</td>
    </tr>
    <tr>
    <td><b>Drop Location - </b></td>
    <td>'.$drop.'</td>
    </tr>
    <tr>
    <td><b>Pickup Date - </b></td>
    <td>'.$date.'</td>
    </tr>
    <tr>
    <td><b>Pickup Time - </b></td>
    <td>'.$time.'</td>
    </tr>
    </table>
    </body>
    </html>';
}

/*****Tour Form*****************************/
if(isset($_POST['destination'])){
    $name = $_POST['name'];
    $phone = $_POST['phone'];
    $destination = $_POST['destination'];
    $tour_date = $_POST['tour_date'];
    $persons = $_POST['persons'];

    $html = '<html>
    <head>
    <title>Tour Package Booking Details</title>
    </head>
    <body>
    <h1>Tour Package Booking Details</h1>
    <table>
    <style>
    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td, table th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    <tr>
    <td><b>Name- </b></td>
    <td>'.$name.'</td>
    </tr>
    <tr>
    <td><b>Phone Number - </b></td>
    <td>'.$phone.'</td>
    </tr>
    <tr>
    <td><b>Destination - </b></td>
    <td>'.$destination.'</td>
    </tr>
    <tr>
    <td><b>Travelling Date - </b></td>
    <td>'.$tour_date.'</td>
    </tr>
    <tr>
    <td><b>Number Of People - </b></td>
    <td>'.$persons.'</td>
    </tr>
    </table>
    </body>
    </html>';
}


if(isset($_POST['activity'])){
    $name = $_POST['name'];
    $phone = $_POST['phone'];
    $activity = $_POST['activity'];
    $tour_date = $_POST['tour_date'];
    $persons = $_POST['persons'];

    $html = '<html>
    <head>
    <title>Activity Booking</title>
    </head>
    <body>
    <h1>Activity Booking Details</h1>
    
    <table>
    <style>
    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td, table th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    <tr>
    <td><b>Name- </b></td>
    <td>'.$name.'</td>
    </tr>
    <tr>
    <td><b>Phone Number - </b></td>
    <td>'.$phone.'</td>
    </tr>
    <tr>
    <td><b>Activity Required - </b></td>
    <td>'.$activity.'</td>
    </tr>
    <tr>
    <td><b>Travelling Date - </b></td>
    <td>'.$tour_date.'</td>
    </tr>
    <tr>
    <td><b>Number Of People - </b></td>
    <td>'.$persons.'</td>
    </tr>
    </table>
    </body>
    </html>';
}
//--------------- Quick Query -------------------

if(isset($_POST['enquiry_now'])){
    $name = $_POST['name'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $trip = $_POST['trip'];
    $from = $_POST['from'];
    $to = $_POST['to'];
    $pickup_date = $_POST['pickup_date'];
    $drop_date = $_POST['drop_date'];
    $cab_type = $_POST['cab_type'];
    $message = $_POST['message'];

    $html = '<html>
    <head>
    <title>Booking Details</title>
    <style>
    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td, table th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    </head>
    <body>
    <h1>Booking Details</h1>
    <table>
    
    <tr>
    <td><b>Name - </b></td>
    <td>'.$name.'</td>
    </tr>
    <tr>
    <td><b>Email - </b></td>
    <td>'.$email.'</td>
    </tr>
    <tr>
    <td><b>Phone Number - </b></td>
    <td>'.$phone.'</td>
    </tr>
    <tr>
    <td><b>Pickup Location - </b></td>
    <td>'.$from.'</td>
    </tr>
    <tr>
    <td><b>Drop Location - </b></td>
    <td>'.$to.'</td>
    </tr>
    <tr>
    <td><b>Pickup Date - </b></td>
    <td>'.$pickup_date.'</td>
    </tr>
    <tr>
    <td><b>Drop Date - </b></td>
    <td>'.$drop_date.'</td>
    </tr>
    <tr>
    <td><b>Cab Type - </b></td>
    <td>'.$cab_type.'</td>
    </tr>
    <tr>
    <td><b>Trip Type - </b></td>
    <td>'.$trip.'</td>
    </tr>
    <tr>
    <td><b>Message - </b></td>
    <td>'.$message.'</td>
    </tr>
    </table>
    </body>
    </html>';
}

 // tour package enquiry
if(isset($_POST['contact_message'])){
    $name = $_POST['name'];
    $phone = $_POST['phone'];
    $contact_message = $_POST['contact_message'];

    $html = '<html>
    <head>
    <title>Contact Details</title>
    <style>

    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td, table th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    </head>
    <body>
    <h1>Contact Details</h1>
    <table>
    
    <tr>
    <td><b>Name - </b></td>
    <td>'.$name.'</td>
    </tr>
    <tr>
    <td><b>Phone Number - </b></td>
    <td>'.$phone.'</td>
    </tr>
    <tr>
    <td><b>Message - </b></td>
    <td>'.$contact_message.'</td>
    </tr>
    </table>
    </body>
    </html>';

}



    $mail=new PHPMailer();
    $mail->isSMTP();
    $mail->Host='smtp.hostinger.com';
    $mail->Port=465;
    $mail->SMTPSecure="ssl";
    $mail->SMTPAuth=true;
    $mail->Username="info@namastedevbhoomiadventureandtour.in";
    $mail->Password="Namaste@2434@";
    $mail->setFrom("info@namastedevbhoomiadventureandtour.in");
    $mail->addAddress('namastedevbhoomiadventuretour@gmail.com');
    $mail->isHTML(true);
    $mail->Subject="Booking Details";
    $mail->Body=$html;
    if($mail->send()){
     echo '<script language="javascript">';
     echo 'alert("We have received your information. Our team will contact you soon! Thankyou..."); location.href="index.php"; ';
     echo '</script>';
 }else{
    echo '<script language="javascript">';
     echo 'alert("Oops something went wrong!"); location.href="index.php"; ';
     echo '</script>';
}


?>

MMCT - 2023