MMCT TEAM
1Server IP : 2a02:4780:11:1776:0:2637:29db:10  /  Your IP : 216.73.216.15
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u641149403/domains/mistytourandtravel.in/../waterplusroservices.co.in/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/mistytourandtravel.in/../waterplusroservices.co.in/public_html/mail.php
<?php
include('smtp/PHPMailerAutoload.php');

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

if(isset($_POST['select'])){
    $name = $_POST['name'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $select = $_POST['select'];

    $html = '<html>
    <head>
    <title>Quotation</title>
    </head>
    <body>
    <style>
    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td{
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    <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>Email ID - </b></td>
    <td>'.$email.'</td>
    </tr>
    <tr>
    <td><b>Type - </b></td>
    <td>'.$select.'</td>
    </tr>
    </table>
    </body>
    </html>';
}


    if(isset($_POST['message'])){
    $name = htmlspecialchars($_POST['name']);
    $phone = htmlspecialchars($_POST['phone']);
    $email = htmlspecialchars($_POST['email']);
    $message = htmlspecialchars($_POST['message']);

   
    $html = '<html>
    <head>
    <title>Quotation</title>
    </head>
    <body>
    <style>
    table{
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }
    table td{
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    </style>
    <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>Email ID - </b></td>
    <td>'.$email.'</td>
    </tr>
    <tr>
    <td><b>Message - </b></td>
    <td>'.$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@waterplusroservices.co.in";
    $mail->Password="Waterplus@2024";
    $mail->setFrom("info@waterplusroservices.co.in");
    $mail->addAddress('royaltaxi.in@gmail.com');
    $mail->isHTML(true);
    $mail->Subject="Customer Enquiry";
    $mail->Body=$html;
    if($mail->send()){
     echo '<script language="javascript">';
     echo 'alert("We have received your information. Our team will contact you soon! Thank you."); location.href="index"; ';
     echo '</script>';
     error_log('Mailer Error: ' . $mail->ErrorInfo);
 }else{
    echo '<script language="javascript">';
    echo 'alert("Oops something went wrong!"); location.href="index"; ';
    echo '</script>';

}
?>

MMCT - 2023