Careers

Name of the Person :
Address :
City :
State :
Phone :
Email :
Please upload your resume (either word or PDF form)
"; // Check for empty fields if(empty($_POST['name']) || empty($_POST['email'])) { $errors .= "\n Error: all fields are required"; } // Get all the values from input $name = $_POST['name']; $email_address = $_POST['email']; $Address = $_POST['Address']; $City = $_POST['City']; $State = $_POST['State']; $Phone = $_POST['Phone']; if (!eregi( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email_address)) { $errors .= "\n Error: Invalid email address"; } $tmp_name = $_FILES['filename']['tmp_name']; $type = $_FILES['filename']['type']; $file_name = $_FILES['filename']['name']; $size = $_FILES['filename']['size']; $message = "Name: $name \n\n Email: $email_address \n\n Address: $Address \n\n City: $City\n\n State: $State \n\n Phone: $Phone \n\n "; if (file_exists($tmp_name)){ if(is_uploaded_file($tmp_name)){ $file = fopen($tmp_name,'rb'); $data = fread($file,filesize($tmp_name)); fclose($file); $data = chunk_split(base64_encode($data)); } $headers = "From: $from\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\""; $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; $message .= "--{$mime_boundary}\n" . "Content-Type: {$type};\n" . " name=\"{$file_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; // Thats all.. Now we need to send this mail... :) if (@mail($to, $subject, $message, $headers)) { echo '

We have received your CV and thanks for showing interest in QuantumAeon

'; }else { echo '

Error !! Unable to send Mail..

'; } } } ?>