Problem with forward mail attachments

Hello, I have a problem with my workflow.
Simply I want forward the attachment from the trigger to the new mail.

But… I doesn’t work.

Thats the trigger:

And I found this function:

This is my send mail:

Everything works. Only the attachments are missing.

Information on your n8n setup

  • n8n version: Latest “next” version
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Debian 11

Hey @Nils94

From what I understand, the binary needs to be present in the immediate preceding node before the “Send Email” node ie. it can’t be 4 nodes back, it has to be one.

Try moving the code node next to the “Send Email” node and see if that helps.