Skip to content

n8n workflow that receives emails via Gmail, formats the content, sends messages to a list of recipients, and generates .txt log files on the server. Includes Java code steps, email dispatch, and automated logging.

Notifications You must be signed in to change notification settings

andreymsdev/n8n-email-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n8n Gmail Automation Workflow

Workflow Preview

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.

Features

  • 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

Workflow Structure

  1. Gmail Trigger
    Captures new incoming emails.

  2. Code (Java)
    Formats subject, body, and prepares structured data.

  3. Gmail Send Email
    Sends messages to multiple recipients.

  4. Code (Log Builder)
    Generates log text with timestamp and email metadata.

  5. Write File to Disk
    Writes a .txt log file to the /logs directory.

Docker Setup

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

About

n8n workflow that receives emails via Gmail, formats the content, sends messages to a list of recipients, and generates .txt log files on the server. Includes Java code steps, email dispatch, and automated logging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published