Bestellung

Als Gast bestellen (Daten werden nicht gespeichert)

Ihre Artikel

Ihr Warenkorb ist leer.

" style="margin-top:12px">
// Send order details with attached files via email to info@stadtkopierer.de if ($_SERVER['REQUEST_METHOD'] === 'POST') { $subject = 'New Order with Files and Summary'; $message = 'Order Summary and Files: ' . (isset($_SESSION['order_summary_html']) ? $_SESSION['order_summary_html'] : 'No summary provided.'); $files = isset($_SESSION['sk_uploaded_filenames']) ? $_SESSION['sk_uploaded_filenames'] : []; $headers = 'From: no-reply@yourdomain.com' . " "; $headers .= 'Content-Type: text/html; charset=UTF-8' . " "; // Add attachments (if any files are available) $attachments = ''; foreach ($files as $file) { $attachments .= '--boundary '; $attachments .= 'Content-Type: application/octet-stream; name="' . basename($file) . '" '; $attachments .= 'Content-Disposition: attachment; filename="' . basename($file) . '" '; $attachments .= 'Content-Transfer-Encoding: base64 '; $attachments .= chunk_split(base64_encode(file_get_contents($file))) . " "; } $email_message = $message . " " . $attachments; mail('info@stadtkopierer.de', $subject, $email_message, $headers); }