MetaPrint

Premade 3D Printed Objects

Product 1

Product Name

$25.00

Upload Your Design

Contact Us

Have questions or need assistance? Reach out to us!

$value) { $message .= ucfirst($key) . ": " . htmlspecialchars($value) . "\n"; } // Handle file upload if applicable if (isset($_FILES['file']) && $_FILES['file']['error'] === UPLOAD_ERR_OK) { $file_tmp = $_FILES['file']['tmp_name']; $file_name = $_FILES['file']['name']; // Attach the uploaded file $file_data = file_get_contents($file_tmp); $file_encoded = chunk_split(base64_encode($file_data)); $boundary = md5(time()); $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\r\n"; $body = "--$boundary\r\n"; $body .= "Content-Type: text/plain; charset=UTF-8\r\n\r\n"; $body .= $message . "\r\n"; $body .= "--$boundary\r\n"; $body .= "Content-Type: application/octet-stream; name=\"$file_name\"\r\n"; $body .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n"; $body .= "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= $file_encoded . "\r\n"; $body .= "--$boundary--"; mail($to, $subject, $body, $headers); } else { mail($to, $subject, $message); } echo "Thank you! Your query has been sent."; } else { echo "Invalid request."; } ?>