Describe the problem/error/question
Hi,
I’m trying to send emails with attachments from IMAP trigger to SMTP node in my self-hosted n8n 2.3.0 setup.
Setup:
- Email Trigger (IMAP) with “Simple” format enabled
- N8N_DEFAULT_BINARY_DATA_MODE=default
- Send Email node (SMTP) with Plesk mail server
The Problem:
Emails send successfully but attachments are NOT included. When I debug, I see the attachments exist as binary data, but they don’t appear in the received email.
I’ve tried:
Changed N8N_DEFAULT_BINARY_DATA_MODE to “memory” and “default”
Restarted with docker compose down -v
Used “Extract from File” node to convert to Base64
Set Binary Properties to “attachment_0,attachment_1,attachment_2”
None of these worked. The email arrives but attachments are always missing.
Questions:
- Is this a known bug with SMTP + binary data in 2.3.0?
- Are there any workarounds besides using Gmail API?
- Should I downgrade to n8n 1.x?
Any help would be appreciated!
If i had debug in html mail {{ JSON.stringify($(‘Email Trigger (IMAP)’).item.binary, null, 2) }}
i can see that ![]()
{ "attachment_0": { "mimeType": "image/webp", "fileType": "image", "fileExtension": "webp", "data": "UklGRoKUAABXRUJQVlA4WAoAAAAgAAAArwQAogIASUNDUEgMAAAAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYw....
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 2.3.0
- Database (default: SQLite): postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: ubuntu

