HEX
Server: Apache
System: Linux p3plzcpnl485017.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: rbrijwzv8p53 (8461783)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/rbrijwzv8p53/public_html/usibics.com/CONUSIBICS.php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $applicant_email = $_POST["email"];
    $company_email = "pakistan@mniops.education, abiha.rasheed@epicinofotec.com";
    $subject = "USIBICS Application Submission";

    $name = $_POST['name'];
    $email = $_POST['email'];
    $mobile = $_POST['mobile'];
    $country = $_POST['country'];
    $state = $_POST['state'];
    $applying_for = $_POST['applying_for'];
    $subject = $_POST['subject'];
    $message = $_POST['message'];

 

    $company_headers = "From: USIBICS <contact@usibics.com>\r\n";
    $company_headers .= "Content-type: text/plain; charset=utf-8";

    // Send the email to the company
    if (mail($company_email, $subject, $company_message, $company_headers)) {
        // Email to company sent successfully
    } else {
        // There was an error sending the email
        echo "Error sending email to company.";
    }

    // Send an automated response to the applicant
    $applicant_subject = "Thank You for Applying";
    $applicant_message = "Dear Candidate,\n\n";
    $applicant_message .= "Thank you for submitting your internship application to MNIOPS Pakistan. We have received your application, and our team will review it carefully.\n\n An enrolment councilor will contact you via email/phone and set up an interview. Watch for email & phone call on number/email provided in your registration form.";
    $applicant_message .= "We appreciate your interest in joining our team, and we will get back to you with further updates as soon as possible.\n\n";
    $applicant_message .= "Best regards,\n MNIOPS PAKISTAN";

    $applicant_headers = "From: MNIOPS <pakistan@mniops.education>\r\n";
    $applicant_headers .= "Content-type: text/plain; charset=utf-8";

    // Send the email to the applicant
    if (mail($applicant_email, $applicant_subject, $applicant_message, $applicant_headers)) {
        // Email to applicant sent successfully
    } else {
        // There was an error sending the email
        echo "Error sending email to applicant.";
    }
    header("Location: thank-you.html");
    exit();
}
?>