How to get Files from Form Submissions and pass them as E-Mail Attatchments?

Describe the problem/error/question

Hey,
I want to create a Form that has some text inputs and a file upload for images.
Afterwards I want n8n to send an Email with text and the images as attatchments or embedded in the mail.

What is the error message (if any)?

“options.attachments.split is not a function”

Please share your workflow

Kind Regards

Information on your n8n setup

  • n8n version: 1.81.4
  • Database (default: SQLite): SQLite

In fields for binary data in n8n, you usually only need to add the variable names. For instance, this could be something like Attachment. However, if multiple documents are uploaded (for example, when using “Multiple Files”), then you need to specify all of them. To handle this, you can use the expression {{ $binary.keys().join(',') }} to list all the binary keys. (Refer to the example)

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