extensions icon indicating copy to clipboard operation
extensions copied to clipboard

🐛 [firestore-send-email] Attachments are corrupted in latest version of the extension

Open MerlinOfCode opened this issue 9 months ago • 4 comments

  • Extension name: firestore-send-email
  • Extension version: latest

Attachments being sent through this extension are being corrupted and cannot be viewed by recipient. This only began happening in latest update.

MerlinOfCode avatar Mar 09 '25 04:03 MerlinOfCode

Hi there, can you share your extension config, and perhaps some details on how you're including attachments? There are multiple ways to include them in this extension.

cabljac avatar Mar 10 '25 09:03 cabljac

Hi, are you able to share any of the info i requested?

cabljac avatar Apr 01 '25 14:04 cabljac

Hi @cabljac not sure if what I have noticed since I have upgraded to the latest version is the same issue that @MerlinOfCode is having.

Any attachment sent with the extension is always empty, it has the correct file name.

I have checked the file that should have been sent and it contains data, and the signed URL I have tested and works ok.

The document I create when sending attachment:

const emailData = { to: email, message: { subject: subject, html: ${start}${message}${getEmailFooter(email)}${end}, attachments: [{ filename: fileName, path: signedUrl, }], }, from: "***** <no-reply@****.com>", };

The only change I have made since the upgrade was change the attachments to an array.

ian-sayles avatar Apr 28 '25 13:04 ian-sayles

{ filename: fileName, path: signedUrl, }

is there a documentation about providing an url instead of a base 64 encoding of the file content ?

cedvdb avatar Apr 28 '25 18:04 cedvdb