🐛 [firestore-send-email] Attachments are corrupted in latest version of the extension
- 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.
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.
Hi, are you able to share any of the info i requested?
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.
{ filename: fileName, path: signedUrl, }
is there a documentation about providing an url instead of a base 64 encoding of the file content ?