Get the Flash Player to see this player.
Error! One or more of the required fields is missing.'; } elseif( $_POST ) { $mail_to = 'sales@sdtranslations.com'; $mail_subj = 'Quote Request'; foreach( $_POST as $id => $value ) { $id = str_replace( 'FieldData', '', $id ); $key = "p{$id}"; $$key = stripslashes( $value ); } $message = "A quote was requested.\n Name: {$p0}\n E-mail Address: {$p1}\n Company Name: {$p2}\n Country: {$p3}\n Words: {$p4}\n Pages: {$p5}\n Description: {$p6}\n Language(s): {$p7}\n Heard: {$p8}\n Additional: {$p9}"; $fileatt = $_FILES['FieldData10']['tmp_name']; $fileatt_type = $_FILES['FieldData10']['type']; $fileatt_name = $_FILES['FieldData10']['name']; $headers = "From: comm@sdtranslations.com"; if (is_uploaded_file($fileatt)) { // Read the file to be attached ('rb' = read binary) $file = fopen($fileatt,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); // Generate a boundary string $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; // Add a multipart boundary above the plain message $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"; // Base64 encode the file data $data = chunk_split(base64_encode($data)); // Add file attachment to the message $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"; } mail( $mail_to, $mail_subj, $message, $headers ); $show_fields = false; } if( $show_fields ) { ?>

All fields marked with (*) are required.

Name (First, Last) (*)
E-mail Address (*)
Company Name
Country (*)

How many words in your document(s)?

Number of pages in your document(s)

Brief description of your document:


What language(s) would you like your document translated into?

How did you hear about us?









Additional comments
Select an attachment


We will be reviewing your information and will get back to you within 24 hours.

This will be shown to users with no Flash or Javascript.

Privacy Policy | Terms of Use | Contact Us
© SDTranslations.com