Download e-mail attachment and send via HTTP Request

Hello everyone,

Is it possible to download an e-mail attachment, could be via Outlook or Imap, and send via http request only attachments that have a specific tag or string on it to a JavaScript application?

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via npm:
  • **Operating system: Windows

@Hnk yes this should be relatively straight forward in n8n. Our Email Trigger has an option to download files

From there you would need to use IF or filter node to check for your tags/ string conditions (you may have to first convert your binary downloaded files; or turn them into n8n items so you can iterate over them if there are multiple attachments per email). Just depends on your specific usecase; but should be possible.

Recommend to get started with setting up the Email trigger - and let us know if you get stuck :slight_smile:

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