"; $headers = "From: $fromName <$fromEmail>\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed;"; $headers .= " boundary=\"".$mime_boundary."\";\n"; $headers .= "Content-Transfer-Encoding: 7bit\n\n"; $headers .= "Your e-mail client is not mime compatible\n\n"; //message $headers .= "--$mime_boundary\n"; $headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n"; $headers .= "Content-Transfer-Encoding: 7bit\n\n"; $headers .= " Information from the email upload form: Name: $name Company: $company Address: $address City: $city State: $state Zip code:$zipcode Phone: $phone Fax: $fax Email: $email $files files attached Comments: $comments \n\n"; $messageSent = "Your reorder has been sent.
"; if (!empty($_FILES['attachment']['tmp_name'])||!empty($_FILES['attachment2']['tmp_name'])||!empty($_FILES['attachment3']['tmp_name'])||!empty($_FILES['attachment4']['tmp_name'])) { //$headers .= "--".$mime_boundary."\n"; } if (!empty($_FILES['attachment']['tmp_name'])) { $headers .= "--".$mime_boundary."\n"; $fileNameParts = explode(".",$_FILES['attachment']['name']); $ext = array_pop($fileNameParts); $headers .= "Content-Type: image/$ext; name=\"{$_FILES['attachment']['name']}\";\n"; $headers .= "Content-Transfer-Encoding: base64\n"; $headers .= "Content-Disposition: attachment\n\n"; $headers .= "$content\n"; } if (!empty($_FILES['attachment2']['tmp_name'])) { $headers .= "--".$mime_boundary."\n"; $fileNameParts2 = explode(".",$_FILES['attachment2']['name']); $ext2 = array_pop($fileNameParts2); $headers .= "Content-Type: image/$ext2; name=\"{$_FILES['attachment2']['name']}\";\n"; $headers .= "Content-Transfer-Encoding: base64\n"; $headers .= "Content-Disposition: attachment\n\n"; //$headers .= "filename=\"{$_FILES['attachment']['name']}\"\n\n"; $headers .= "$content2\n"; } if (!empty($_FILES['attachment3']['tmp_name'])) { $headers .= "--".$mime_boundary."\n"; $fileNameParts3 = explode(".",$_FILES['attachment3']['name']); $ext3 = array_pop($fileNameParts3); $headers .= "Content-Type: image/$ext3; name=\"{$_FILES['attachment3']['name']}\";\n"; $headers .= "Content-Transfer-Encoding: base64\n"; $headers .= "Content-Disposition: attachment\n\n"; //$headers .= "filename=\"{$_FILES['attachment']['name']}\"\n\n"; $headers .= "$content3\n"; } if (!empty($_FILES['attachment2']['tmp_name'])) { $headers .= "--".$mime_boundary."\n"; $fileNameParts4 = explode(".",$_FILES['attachment4']['name']); $ext4 = array_pop($fileNameParts4); $headers .= "Content-Type: image/$ext4; name=\"{$_FILES['attachment4']['name']}\";\n"; $headers .= "Content-Transfer-Encoding: base64\n"; $headers .= "Content-Disposition: attachment\n\n"; //$headers .= "filename=\"{$_FILES['attachment']['name']}\"\n\n"; $headers .= "$content4\n"; } $headers .= "--$mime_boundary--\n"; mail($to,$subject,$message,$headers); } /***************** GET SELECT LIST *********************/ function getSelectList($name,$nrChecked,$nrOfRecords) { $response = ''; for ($i =1; $i <= $nrOfRecords; $i++) { if ($_POST['$name'] == $i) { $checked = "CHECKED"; } elseif ($nrChecked == $i) { $checked = "CHECKED"; } else { $checked = ''; } $response .= " $i   "; } return $response; } $customerService_ = getSelectList("customerService",0,10); $qualityPrint_ = getSelectList("qualityPrint",0,10); $producedQuickly_ = getSelectList("producedQuickly",0,10); $response .= "
$messageSent

Name:
Company:
Address:
City:
State:
Zip Code:
Phone:
Fax:
Email:
Attach file:
Attach file:
Attach file:
Attach file:
Comments:


    
"; ?>