Sending email with multiple attachments

hi team :slight_smile:

Going through the text course 2 at the moment. I’m aggregating an array of binaries as 1 item then using Gmail node to send an email with each attached binary but I’m running into this:

It’s complaining the file is not there, but it is? Am I doing something wrong?

Here’s the relevant workflow bit:

Thank you!

Information on your n8n setup

  • n8n version: - v1.63.4
  • Database (default: SQLite): NA
  • n8n EXECUTIONS_PROCESS setting (default: own, main): NA
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: NA

Hey @gualter , the filed “Attachment Field Name” expects only one binary. You cannot use more than one (comma separated list). Besides you just need the name, do not use the expression.

I’m not familiar with the course itself. However, I can see three options:

  1. You zip all the binaries into a single binary archive file
  2. You do not agregate them, use sperate items. In this case, however, you will send as many emails as there are binaries
  3. If the number of binaries is predefined, you can use the required number of “Attachment Field Name” fields - one for each binary.
1 Like

thanks for replying @ihortom .

the filed “Attachment Field Name” expects only one binary

Does this mean I can’t add more attachments? the tooltip says I can separate them by comma:

The course itself has the example of sending 1 by 1 email with 1 attachment. I was just experimenting with the workflow now.

Thank you!

edit: aah, I see it now. Multiple properties != multiple attachments. I believe we can close this now

I was trying to do that by my self during the course 2 but currently, the Gmail node only supports attaching a single binary file per “Attachment Field Name.” When working with workflows that generate multiple binary files, it becomes cumbersome to either send separate emails for each attachment or to manually create multiple attachment fields for a predefined number of files. This limits flexibility and scalability, especially when handling dynamic numbers of files.

I would like to request an enhancement to the Gmail node to support attaching multiple binary files through a list input in the "Attachment Field Name.

Even if it possible as described in this post https://community.n8n.io/t/how-to-download-multiple-files-and-attach-all-of-them-in-a-single-email/43946
in my opinion, it would be more convenient to handle this directly from the Gmail node.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.