MMCT TEAM
Server IP : 45.113.226.95  /  Your IP : 216.73.216.239
Web Server : LiteSpeed
System : Linux bharat.hostitbro.com 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User : digita21 ( 1701)
PHP Version : 8.3.30
Disable Function : mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0750) :  /home2/digita21/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/digita21/public_html/submit.php
<?php

if(isset($_POST['submit'])){
    $name = $_POST['name'];
    $email = $_POST['email'];
    $phone = $_POST['phone'];
    $loan = $_POST['loan']; // Include the loan field
    $message = $_POST['message'];

    // Specify multiple recipients
    $to = "pramodkushwaha220@gmail.com, info@digitalpaisabazaar.com"; // Add the second email address here
    $subject = "Mail from Digital Paisa Bazaar";
    
    // Create the table formatted message
    $text = "
    <html>
    <head>
    <title>Enquiry Details</title>
    </head>
    <body>
    <table border='1' cellpadding='10' cellspacing='0'>
        <tr>
            <th style='text-align:left;'>Field</th>
            <th style='text-align:left;'>Details</th>
        </tr>
        <tr>
            <td>Name</td>
            <td>".$name."</td>
        </tr>
        <tr>
            <td>Email</td>
            <td>".$email."</td>
        </tr>
        <tr>
            <td>Phone</td>
            <td>".$phone."</td>
        </tr>
        <tr>
            <td>Loan</td>
            <td>".$loan."</td>
        </tr>
        <tr>
            <td>Message</td>
            <td>".$message."</td>
        </tr>
    </table>
    </body>
    </html>";

    // Correct headers for HTML email
    $headers = "From: ".$email."\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=UTF-8\r\n";

    // Send mail
    if(mail($to, $subject, $text, $headers)){
        echo '<script>
                alert("Enquiry Success");
                window.location.href = "index.php";
              </script>';
    } else {
        echo "Mail not sent";
    }
}

?>

MMCT - 2023