diff --git a/mailer.js b/mailer.js
index 5f8e102..af8f7f6 100644
--- a/mailer.js
+++ b/mailer.js
@@ -30,10 +30,8 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
// Check if local logo exists for CID inline attachment
const localLogoPath = path.join(__dirname, 'logo.png');
const logoExists = fs.existsSync(localLogoPath);
- // Use cid:store_logo in HTML - Gmail renders CID attachments correctly
- const logoImgTag = logoExists
- ? `
`
- : `rayaarishop`;
+ // Use a remote URL if you have one, or stick to text fallback to avoid the "logo.png" attachment pill
+ const logoImgTag = `RAY AARI SHOP`;
// --- 1. Generate Order Summary Rows HTML ---
let orderRowsHtml = '';
@@ -219,14 +217,6 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
}
];
- if (logoExists) {
- customerAttachments.push({
- filename: 'logo.png',
- path: localLogoPath,
- cid: 'store_logo'
- });
- }
-
// --- Seller attachments: Invoice PDF only ---
const sellerAttachments = [
{
@@ -236,14 +226,6 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
}
];
- if (logoExists) {
- sellerAttachments.push({
- filename: 'logo.png',
- path: localLogoPath,
- cid: 'store_logo'
- });
- }
-
try {
// 1. Send to customer (Invoice only)
const customerMail = await transporter.sendMail({
@@ -262,8 +244,8 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
const sellerMail = await transporter.sendMail({
from: `"${process.env.SHOP_NAME || 'Your Store'}" <${process.env.SMTP_FROM_EMAIL}>`,
to: sellerEmail,
- subject: `[NEW ORDER] #${orderNumber} - Invoice & Shipping Label`,
- text: `New order #${orderNumber} received. Invoice and Shipping Label attached.`,
+ subject: `[NEW ORDER] #${orderNumber} - Invoice`,
+ text: `New order #${orderNumber} received. Invoice attached.`,
html: htmlTemplate,
attachments: sellerAttachments
});
diff --git a/shipping-label-test.pdf b/shipping-label-test.pdf
index 7041d1c..60209b3 100644
Binary files a/shipping-label-test.pdf and b/shipping-label-test.pdf differ