First Name : $fname1
last Name : $lname1
Gender : $gender1
Address : $address1
City : $city1
Message : $message1
"; $headers = "From: ".$email_from; $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; $email_message .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message . "\n\n"; /********************************************** First File ********************************************/ $fileatt = $target_path; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = $fname1." Resume.".$path_parts['extension'];; // Filename that will be used for the file as the attachment $file = fopen($fileatt,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); $data = chunk_split(base64_encode($data)); $email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}\n"; unset($data); unset($file); unset($fileatt); unset($fileatt_type); unset($fileatt_name); //@mail($email_to, $email_subject, $email_message, $headers); if ($_GET['position']='Marketing Executive (ME_SEPL)' or$_GET['position']='Marketing Executive(MF_SEPL)' or $_GET['position']='Logistic Supervisor(LS_SEPL)' ) { @mail($email_to4, $email_subject, $email_message, $headers); @mail($email_to3, $email_subject, $email_message, $headers); } else { if ($_GET['position']='Account Officer(AO_CETP)') { @mail($email_to3, $email_subject, $email_message, $headers); @mail($email_to2, $email_subject, $email_message, $headers); @mail($email_to5, $email_subject, $email_message, $headers); } else { @mail($email_to, $email_subject, $email_message, $headers); @mail($email_to1, $email_subject, $email_message, $headers); @mail($email_to2, $email_subject, $email_message, $headers); @mail($email_to3, $email_subject, $email_message, $headers); } } $result = "Applied successfully."; } else { echo "out"; } } else { $err = "Mark all mandetory fields"; $fname = $_POST['fname']."
"; $lname = $_POST['lname']."
"; $gender = $_POST['gender']."
"; $address = $_POST['address']."
"; $city = $_POST['city']."
"; $message = $_POST['message']."
"; } } ?> ::: SMS Envocare :::
individual

Apply for Position

* Fields are compulsory.
* Position Applied For :
* First Name :
* Last Name :
* Gender :
*Address :
* City :
* Attach Your Resume :
Message :

Powered by Remote Data e-Xchange