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',