Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MerlinOfCode opened this issue Mar 9, 2025 · 4 comments
Labels
extension: firestore-send-email Related to firestore-send-email extension type: bug Something isn't working

Comments

@MerlinOfCode
Copy link

  • 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 MerlinOfCode added the type: bug Something isn't working label Mar 9, 2025
@cabljac cabljac changed the title 🐛 [EXTENSION_NAME_HERE] Your issue title here 🐛 [firestore-send-email] Attachments are corrupted in latest version of the extension Mar 10, 2025
@cabljac
Copy link
Contributor

cabljac commented Mar 10, 2025

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 cabljac added the needs: author feedback Pending additional information from the author label Mar 10, 2025
@cabljac
Copy link
Contributor

cabljac commented Apr 1, 2025

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

@ian-sayles
Copy link

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.

@cedvdb
Copy link

cedvdb commented Apr 28, 2025

{
filename: fileName,
path: signedUrl,
}

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

@cabljac cabljac moved this from Needs Acknowledgment to Triaged in [Cloud] Extensions + Functions May 13, 2025
@cabljac cabljac added triaged extension: firestore-send-email Related to firestore-send-email extension and removed needs: author feedback Pending additional information from the author triaged labels May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension: firestore-send-email Related to firestore-send-email extension type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants