Can't attach file to Send Email node

Describe the problem/error/question

I’m trying to attach a binary file to the Send Email node so it’s included as an email attachment. However, no matter what I try, the email is delivered without the attachment.

Below is the binary input. For attachments, I’ve tried “data”, the file name, and everything else you can think of.

What is the error message (if any)?

None. There is simply no attachment on the email.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.99.1
  • Database (default: SQLite): Not sure
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Not sure
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: OSX Sonoma 14.5

In the attachments field you need to write “data”

basically what ever you have here needs to go into the attachment field

2 Likes

I tried that. It unfortunately doesn’t work either.

Would you like to share how exactly this doesn’t work? You get an error? The email comes without an attachment?

Try to run this and tell me if that works:

It looks like you’ve pasted the HTTP Request node’s binary output instead of the HubSpot Trigger, and then restated the scopes fix.

Could you let me know:

  1. Did adding “webhooks‐read” and “webhooks‐write” (plus the CRM scopes) to your HubSpot app and re-authorizing solve the “errors” scope complaint?
  2. If it’s still failing, please share the HubSpot Trigger node’s settings (the event types you’re subscribing to) and any new error message you’re seeing.

That’ll help me pinpoint whether the scope change took effect or if something else is blocking the subscription.

Ask ChatGPT

I tried using “data” in the attachments field. I got an email without an attachment.

But I tried this again today… and it somehow worked. Maybe I had a typo or something? That did it. Thank you so much.

mark the problem solved as me please

I believe there is a bug, and that is why I was confused. When the node prior (HTTP Request) is pinned, the send email node (which contains “data” for the attachment) no longer sends an email with an attachment. If I run the entire workflow from the start, the attachment is found in the email.

I’m going to submit a bug ticket for this.