N8n workflow setup -- send pdf to one of four email address


I have setup a workflow that is having issues smtp attachments with the workflow as setup. Apparently, the email module needs to be right after the dropbox module to function the way I would like, but, it does not completely meet the needs of the workflow.

As a newbie to n8n and automation, I am not sure where I am going wrong or how to fix this workflow (not familiar with javascript). My goal with this workflow is to send an email to email addresses in the airtable module using one of four emails addresses with the same attachment from the dropbox module.

Any guidance would be appreciated. I will continue to attempt to figure this out on my own, but, thought I would reach out for additional assistance.


(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

n8n setup

  • n8n version: 0.218.0
  • Database you’re using (default: SQLite): my guess is sqlite (i did not install anything else)
  • Running n8n with the execution process [own(default), main]: main
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker

Hey @d1amondre,

Welcome to the community :tada:

The quick option would be to add a merge node that gets the inputs from the dropbox node and the randomize email node then have the merge node go to the switch node. Another possible option would be to create an array containing the emails in the workflow then randomly selecting the address in the send email node which would allow you to drop the Airtable, set and switch nodes.

Hey Jon,

Thanks for the community welcome.

I appreciate your feedback and I will read up on the merge node as well as creating an array for a better understanding of how these work as the solutions in your recommendations. I will provide an update as progress is made.


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