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/usa.mniops.education/partnership.php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $university_email = $_POST["university_email"];
    $company_emails = array("usa@mniops.education", "abiha.mniops@gmail.com"); // Replace with your company's email addresses
    $subject_university = "Collaboration Request Submission (University)";
    $subject_company = "Collaboration Request Received (MNIOPS)";

    // Extract form data
    $university_name = $_POST["university_name"];
    $university_contact_name = $_POST["university_contact_name"];
    $university_phone = $_POST["university_phone"];
    $university_website = $_POST["university_website"];
    $collaboration_details = $_POST["collaboration_details"];

    // Construct the email message for the university
    $university_message = "Dear $university_contact_name,\n\n";
    $university_message .= "Thank you for submitting a collaboration request to MNIOPS Pakistan. We have received your request and will review it as soon as possible.\n\n";
    $university_message .= "Here are the details you provided:\n\n";
    $university_message .= "University Name: $university_name\n";
    $university_message .= "Contact Person: $university_contact_name\n";
    $university_message .= "Contact Phone: $university_phone\n";
    $university_message .= "University Website: $university_website\n\n";
    $university_message .= "Collaboration Details:\n$collaboration_details\n\n";
    $university_message .= "We will be in touch with you soon to discuss the collaboration further.\n\n";
    $university_message .= "Best regards,\n MNIOPS";

    $university_headers = "From: Your MNIOPS <usa@mniops.education>";

    // Send the email to the university
    mail($university_email, $subject_university, $university_message, $university_headers);

    // Construct the email message for your company
    $company_message = "Dear Team,\n\n";
    $company_message .= "A new collaboration request has been submitted by $university_contact_name from $university_name.\n\n";
    $company_message .= "Here are the details:\n\n";
    $company_message .= "University Name: $university_name\n";
    $company_message .= "Contact Person: $university_contact_name\n";
    $company_message .= "Contact Email: $university_email\n";
    $company_message .= "Contact Phone: $university_phone\n";
    $company_message .= "University Website: $university_website\n\n";
    $company_message .= "Collaboration Details:\n$collaboration_details\n\n";
    $company_message .= "Please review the request and take appropriate action.\n\n";
    $company_message .= "Best regards,\n MNIOPS";

    $company_headers = "From: MNIOPS <usa@mniops.education>";

    // Send the email to your company
    foreach ($company_emails as $company_email) {
        mail($company_email, $subject_company, $company_message, $company_headers);
    }

    // Redirect the user to a thank-you page
    header("Location: thank_you.html");
    exit();
}
?>