remove shipping label attachment from emails
This commit is contained in:
parent
7894b656e3
commit
f51f2ef0b8
10
mailer.js
10
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 = [
|
const sellerAttachments = [
|
||||||
{
|
{
|
||||||
filename: `Invoice_${orderNumber}.pdf`,
|
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) {
|
if (logoExists) {
|
||||||
sellerAttachments.push({
|
sellerAttachments.push({
|
||||||
filename: 'logo.png',
|
filename: 'logo.png',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user