Attach the output of a loop over items (binary files) to an smtp node

Overview

Thank you in advance for your help!

I’m running a self-hosted n8n instance (fully up to date) and need to extract all the binary PDF files produced by my last Loop execution. These PDFs are generated inside a loop via successive HTTP Requests.

Problem:
I can’t use the “Split to Items” or “SplitInBatches” methods to perform the HTTP calls, because each request requires a custom header—and that header is lost on the second iteration.

WORKFLOW

Objective

  • Capture the n binary PDF files output by the loop
  • Attach them to a SMTP node

Additional Context

  • All private or production-specific information has been removed from the workflow configuration.
  • The Loop node outputs as many binary items as there are iterations, but I’m unable to extract them all at once.

Question

How can I collect and pass along all n binary items generated by the Loop node?

Hi and welcome to the community.
you could try to create a temp folder, save the files to disk, when done with the loop zip everything from the folder then mail it.

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