Templates / Flag bounced emails in Google Sheets from Gmail delivery error messages

Flag bounced emails in Google Sheets from Gmail delivery error messages

Ready for 3.0

by Stéphane Heckel ✓ · 464 views · created 2025-08-11 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Gmail and Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. settings (Edit Fields (Set)): sets 1 field: googlesheetid
  2. readspamfolder (Gmail): get many
  3. undelivered_failure (If): checks a condition and branches into true / false
  4. geterremail (Code): runs custom JavaScript code
  5. listerremail (Edit Fields (Set)): sets 1 field: extractedEmails
  6. lookupemail (Google Sheets): uses Google Sheets
  7. keep_row (Edit Fields (Set)): sets 1 field: row_number
  8. update_err (Google Sheets): update

Services it uses

GmailGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Scanning Email Inbox for Delivery Errors Prerequisite: Automate Personalized Email Campaigns with Google Docs, Sheets, and SMTP. How It Works After running your email campaign, some messages may fail to deliver. This workflow scans your email inbox for…

Excerpt from Stéphane Heckel's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.