Templates / Send bulk email campaigns with Gmail/SMTP and Postgres reputation-safe timing

Send bulk email campaigns with Gmail/SMTP and Postgres reputation-safe timing

Ready for 3.0

by ResilNext ✓ · 375 views · created 2026-03-23 · Social Media

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-10-19.

What this workflow does

This workflow has 28 nodes and runs when an HTTP POST request hits its webhook URL (plus 3 other triggers). Along the way it connects Postgres and Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 3 other triggers).

  1. Workflow Configuration (Edit Fields (Set)): sets 5 fields: maxEmailsPerInboxPerHour, maxEmailsPerInboxPerDay, minDelayBetweenEmailsMinutes…
  2. Get Pending Campaigns (Postgres): run a query
  3. Parse Event Data (Code): runs custom JavaScript code
  4. Get Performance Data (Postgres): run a query
  5. Extract CSV Leads (Extract from File): extracts data from a file
  6. Split Campaigns (Split Out): splits a list into separate items
  7. Log Email Event (Postgres): uses Postgres
  8. Calculate Best Send Times (Code): runs custom JavaScript code
  9. Split Leads (Split Out): splits a list into separate items
  10. Get Campaign Leads (Postgres): run a query

…plus 14 more steps. See the full node list below.

Services it uses

PostgresGmail

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 (11)

From the author

Overview This workflow automates bulk email campaigns with built-in validation, deliverability protection, and smart send-time optimization. It processes CSV leads, validates emails, enriches data, and schedules campaigns intelligently. Emails are sent using…

Excerpt from ResilNext'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.