“; $message = “You have received a new Recruiter Posting.
“; if(!empty($req_data[‘inputRecruiterMessage’])){ $message .= “Recruiter’s Message:
“; $message .= “
“.$req_data[‘inputRecruiterMessage’].”
“; } $message .= “DETAILS:
“; $message .= “Company Name: “.$req_data[‘inputCompanyName’].”
“; $message .= “Recruiter Name: “.$req_data[‘inputName’].”
“; $message .= “Recruiter Designation: “.$req_data[‘inputDesignation’].”
“; $message .= “Recruiter Email: “.$req_data[‘inputEmail’].”
“; $message .= “Recruiter Phone Number: “.$req_data[‘inputPhoneNumber’].”
“; $to = “chairpersonplacement@iimbg.ac.in”; $cc = “placement@iimbg.ac.in”; // $to = $req_data[‘toEmail’]; // $cc = $req_data[‘ccEmail’]; $attachment = array(); if (!empty($_FILES[‘fileOpening1’][‘name’])) { $attachment[] = $_FILES[‘fileOpening1’]; } if (!empty($_FILES[‘fileOpening2’][‘name’])) { $attachment[] = $_FILES[‘fileOpening2’]; } if (!empty($_FILES[‘fileOpening3’][‘name’])) { $attachment[] = $_FILES[‘fileOpening3’]; } if (!empty($_FILES[‘fileOpening4’][‘name’])) { $attachment[] = $_FILES[‘fileOpening4’]; } if (!empty(array_filter($_POST[‘inputOpening’])) || !empty(array_filter($_POST[‘inputCalendar’])) || !empty(array_filter($_POST[‘attach’]))) { $message .= “OPENINGS OFFERED:
“; $j = 1; for ($i=0; $i <= 3; $i++) { $message .= ((isset($_POST['inputOpening'][$i]) && !empty($_POST['inputOpening'][$i])) || (isset($_POST['inputCalendar'][$i]) && !empty($_POST['inputCalendar'][$i])) || (isset($_POST['attach'][$i]) && !empty($_POST['attach'][$i]))) ? "Opening “.($j).”:
” : “”; $message .= (isset($_POST[‘inputOpening’][$i]) && !empty($_POST[‘inputOpening’][$i])) ? “Role Name: “.$_POST[‘inputOpening’][$i].”
” : “”; $message .= (isset($_POST[‘inputCalendar’][$i]) && !empty($_POST[‘inputCalendar’][$i])) ? “Tentative Recruitment Date: “.$_POST[‘inputCalendar’][$i].”
” : “”; $message .= (isset($_POST[‘attach’][$i]) && !empty($_POST[‘attach’][$i])) ? “JD File Name: “.$_POST[‘attach’][$i].”
” : “”; $message .= ((isset($_POST[‘inputOpening’][$i]) && !empty($_POST[‘inputOpening’][$i])) || (isset($_POST[‘inputCalendar’][$i]) && !empty($_POST[‘inputCalendar’][$i])) || (isset($_POST[‘attach’][$i]) && !empty($_POST[‘attach’][$i]))) ? “
” : “”; if((isset($_POST[‘inputOpening’][$i]) && !empty($_POST[‘inputOpening’][$i])) || (isset($_POST[‘inputCalendar’][$i]) && !empty($_POST[‘inputCalendar’][$i])) || (isset($_POST[‘attach’][$i]) && !empty($_POST[‘attach’][$i]))){ $j++; } } $message .= “
“; } $mailres = $_objAdmin->send_email($to, “Recruiter Connect – “.$req_data[‘inputCompanyName’], $message, $attachment, $cc); echo ““; echo ““; } ?>
Indian Institute of Management Bodh Gaya Copyright © 2023