Options.attachments.split is not a function when attaching a file to smtp email

Describe the problem/error/question

Im using a convert to file node to create an ICS file then passing it to an SMTP node to be attached to the email. I place the {{ $binary.data }} in the attachment field. It shows the correct mime type, etc in the display.

What is the error message (if any)?

options.attachments.split is not a function

Please share your workflow

My workflow exceeds the maximum size allowed to post!

Share the output returned by the last node

options.attachments.split is not a function

Information on your n8n setup

Latest docker image from docker.n8n.io/n8nio/n8n

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Since I did not find the answer anywhere. Here is how I fixed it.

I was referencing the attachment with {{ $binary.data }} Which does not work. I changed the attachment field to be just the word “data” and it works.

2 Likes

Welcome to the community @Grandpas_Place !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


It has to be just the word data, not the expression {{ $binary.data }}.

1 Like

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