Templates / Gmail Mail Merge: Send Personalized Emails from Google Sheets

Gmail Mail Merge: Send Personalized Emails from Google Sheets

Beginner   Apps: Google Sheets, Gmail  ·  Setup: 10 minutes

Sending personalized emails to multiple recipients requires copying templates, manually changing names, and sending individually - a tedious process that doesn't scale. Google Sheets mail merge handles the personalization, but lacks advanced features. This workflow connects Google Sheets directly to Gmail for true mail merge capabilities with custom logic.

Download workflow JSON (free) Setup guide

What this workflow does

  1. A Schedule Trigger runs the workflow (or a manual trigger).
  2. A Google Sheets node reads all rows from your contact spreadsheet.
  3. A Code node loops through each row, personalizing the email subject and body with data from each row.
  4. A Gmail node sends each personalized email to the recipient's address from the sheet.

Setup guide

  1. Import the JSON into n8n (Workflows > Import from File).
  2. Connect Google Sheets and Gmail (OAuth) in their respective nodes.
  3. Replace REPLACE_WITH_SPREADSHEET with your actual Google Sheet ID (from the URL).
  4. Update the Code node to map your sheet columns to the email personalization variables.
  5. Configure the Schedule Trigger timing or set up the manual trigger for on-demand execution.
  6. Test with 2-3 rows first, then run on your full contact list.

Want this running 24/7?

Self-host n8n on a cheap VPS and this workflow runs around the clock for less than a coffee a month.

Get an n8n VPS from $5/month

FAQ

What are Gmail sending limits?Gmail has a daily limit of 500 emails per day for regular accounts and 1,500 for Google Workspace. The workflow will fail gracefully for any emails beyond the daily limit, which you can see in the execution logs.
How do I personalize the email content?Edit the Code node to reference your sheet column headers. For example, if you have 'Name' and 'Company' columns, use {{ $row.Name }} and {{ $row.Company }} in your email template.
Can I send to different email providers?Yes, Gmail can send to any email provider (Outlook, Yahoo, etc.) as long as the recipient addresses are valid. The workflow only affects the sending side, not delivery to recipients.

Want the workflows this one is a warm-up for?

The Mega Bundle packs both WorkflowForge Pro volumes — 32 production-grade workflows: automations (cart recovery, lead scoring, invoice extraction) and AI agents (support agent, calendar assistant, research agent), each with a setup guide. $39 for both, instant download.

Get the Mega Bundle →

Need it customized for your exact process?

I build custom n8n automations and AI agents professionally: your tools, your edge cases, tested and documented.

Hire me on Fiverr →