From f51f2ef0b80a56ac11858c23c0b2349ca9975973 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Fri, 5 Jun 2026 17:43:09 +0530 Subject: [PATCH] remove shipping label attachment from emails --- mailer.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mailer.js b/mailer.js index 0bff353..5f8e102 100644 --- a/mailer.js +++ b/mailer.js @@ -227,7 +227,7 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa }); } - // --- Seller attachments: Invoice PDF + Shipping Label PDF --- + // --- Seller attachments: Invoice PDF only --- const sellerAttachments = [ { filename: `Invoice_${orderNumber}.pdf`, @@ -236,14 +236,6 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa } ]; - if (shippingLabelBuffer) { - sellerAttachments.push({ - filename: `ShippingLabel_${orderNumber}.pdf`, - content: shippingLabelBuffer, - contentType: 'application/pdf' - }); - } - if (logoExists) { sellerAttachments.push({ filename: 'logo.png',