This repository contains an n8n workflow that receives emails through Gmail, processes the content, forwards messages to multiple recipients, and generates persistent .txt logs on disk.
- Gmail Trigger to capture incoming emails
- Java Code node to extract and format subject/body
- Email dispatch to multiple recipients
- Status tracking (OK / error)
- Log generation using Write File to Disk
- Folder mounted via Docker for persistent storage
-
Gmail Trigger
Captures new incoming emails. -
Code (Java)
Formats subject, body, and prepares structured data. -
Gmail Send Email
Sends messages to multiple recipients. -
Code (Log Builder)
Generates log text with timestamp and email metadata. -
Write File to Disk
Writes a.txtlog file to the/logsdirectory.
Example docker run:
docker run -d --name n8n \
-p 5678:5678 \
-v /home/node/.n8n:/home/node/.n8n \
-v /home/node/n8n-logs:/logs \
n8nio/n8n