How to mail merge from Google Sheets to Gmail, and know which rows went out
A mail merge sends one email per row of your Google Sheets™ spreadsheet from your own Gmail™, with each person's name, amount or link filled in from the columns. Here is how to set up the sheet, check the email before anyone gets it, send it with an add-on, Gmail's own tool or a short script, and see afterwards who got it.
Short answer
Put one person per row under a row of column names, with an email column and an empty status column. Write the email once with column names such as {{First name}}, preview a few rows, send a test to yourself, then send and mark each row Sent or with its error.
Three tools can send it: an add-on; Gmail's own mail merge, which only some Google Workspace™ plans have and which sends to up to 1,500 recipients a day; or an Apps Script, which sends to 100 recipients a day from a gmail.com account, by Google's figures.
What a mail merge from Google Sheets does
A mail merge turns one email and one list into many emails. You write the message once. The tool sends one copy per row and replaces each column name in it with that row's value, so Maria's email says $45 and Sofia's says $60.
Each email goes from your own Gmail address to one person. It arrives like an email you typed, and replies come back to you. With Bcc, by contrast, everyone gets the same text.
The same words also describe merging a sheet into Google Docs, to make letters, labels or envelopes. That is a different job, done by different tools. This guide is about email.
How to set up the sheet
Most mistakes in a mail merge start in the sheet. Before you write a word of the email, check these six things.
- One row per person. Every row becomes one email. Two rows with the same address mean two emails, so remove duplicates first.
- Column names in row 1. Give each column a short, plain name, such as First name or Amount; you will type these names into the email. In Gmail's own mail merge, a name with characters other than letters or numbers is picked by its position instead, such as @A.
- One address per cell. The email column holds one address per cell and nothing else. An address like "lena@" will fail, so fix it now. Addresses that sit in cells with other text, or in an email thread, come out one per line, each once, in the email extractor.
- Values as they should read. Format amounts and dates the way the email should show them: Google's Apps Script sample reads each cell as it is displayed. Gmail's mail merge wants the list in the first tab, and Gmail Help says it "can only contain text."
- No gaps in the columns you use. An empty First name turns "Hi {{First name}}," into "Hi ,". Fill the gaps, or leave those rows out.
- An empty column for the result. Add a column named Status at the end. It will say which rows got the email; Google's sample script calls it Email Sent.
A sheet ready to merge
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | First name | Fee status | Amount | Due date | Invoice link | Status | |
| 12 | Maria | maria.lopez@example.com | Unpaid | $45 | Oct 31, 2026 | riversiderowing.example/pay/1012 | |
| 22 | Ethan | ethan.brooks@example.com | Unpaid | $45 | Oct 31, 2026 | riversiderowing.example/pay/1022 | |
| 23 | Sofia | sofia.marino@example.org | Unpaid | $60 | Oct 31, 2026 | riversiderowing.example/pay/1023 | |
| 37 | Lena | lena@ | Unpaid | $60 | Oct 31, 2026 | riversiderowing.example/pay/1037 |
A column like Fee status lets you pick who gets this email with a filter. Check how your tool treats a filter before you rely on it. Google's sample script page says that with a filter applied, "the script still emails the filtered participants, but it won't add the timestamp," so the next run would email them again.
How column names fill in each email
In the email, write a column name in double curly braces where the person's detail goes: {{First name}}, {{Amount}}, {{Invoice link}}. Other tools call them merge tags or placeholders; the idea is the same. Gmail's own mail merge uses @ instead: you type @ and pick a column from a list.
When the email goes to a row, each name is replaced by what that row holds in the column of the same name.
How row 12 fills in Maria's email
- {{First name}}Column A, row 12Maria
- {{Amount}}Column D, row 12$45
- {{Due date}}Column E, row 12Oct 31, 2026
- {{Invoice link}}Column F, row 12riversiderowing.example/pay/1012
Hi {{First name}}, your Riverside Rowing Club fee of {{Amount}} is due on {{Due date}}. You can pay it here: {{Invoice link}}
The email Maria getsHi Maria, your Riverside Rowing Club fee of $45 is due on Oct 31, 2026. You can pay it here: riversiderowing.example/pay/1012
Three things go wrong here more often than anything else.
- A typo in a name. The name has to match row 1 letter for letter; Google's sample says its placeholders "are case sensitive and must exactly match the column headers." Depending on the tool, a {{Fist name}} that matches no column goes out as it is, comes out blank, or stops the send.
- The subject and the links. Not every tool fills them in, and Gmail Help says its mail merge can't. If each person needs their own link, check this before you write the email around one.
- Formatting. If you make a name bold, make the braces bold too. Google's sample asks for exactly that.
How to preview and send a test email
Read the email as two or three different people will get it, before anyone does. A test costs one email; a mistake costs a second email to everyone.
Preview the first row
Check that every column name was filled in and reads naturally: "Hi Maria," and not "Hi maria" or "Hi {{First name}}".
Preview the rows that differ
Pick the longest name, a $60 row next to a $45 one, a row where a cell you use is empty. Mistakes hide in the rows that do not look like the first.
Send a test to yourself
Open it in Gmail on a computer and on a phone. Check the subject, the line breaks and the sender name.
Click every link in the test
A link built from a column, such as each member's payment page, should open that person's page, not a broken address.
If your tool has no test button, put your own address in a copy of the sheet with a single row, and send from that copy first.
How to send and track who got it
Send when the test looks right, and only to the rows you mean. From then on, the status column does the remembering. A row that went out says so, with the date and time. A row that failed says why. An empty cell means the row has not been sent yet.
The same sheet after the first send
| A | B | G | |
|---|---|---|---|
| 1 | First name | Status | |
| 12 | Maria | maria.lopez@example.com | Sent 2026-10-14 14:31 |
| 22 | Ethan | ethan.brooks@example.com | Sent 2026-10-14 14:31 |
| 23 | Sofia | sofia.marino@example.org | Sent 2026-10-14 14:31 |
| 37 | Lena | lena@ | Error: invalid address "lena@" |
| 38 | Isaac | isaac.cohen@example.com | Sent 2026-10-14 14:32 |
| 62 | Ben | ben.foster@example.com |
Sends stop halfway more often than you would expect:
- The daily limit is reached. By Google's figures: about 500 emails a day on gmail.com, 2,000 on Google Workspace, 1,500 recipients through Gmail's mail merge, and 100 recipients for an Apps Script that sends with MailApp from gmail.com. More in Gmail sending limits.
- A script runs out of time. Apps Script stops any run after 6 minutes.
- Something else breaks. A bad address, a closed laptop, a lost connection.
With a status in every row, continuing is simple: filter the status column for empty cells and send to those rows only. Without one, you compare your Sent folder with the sheet, row by row.
To make sure nobody gets the email twice:
- Send again only to rows whose status is empty.
- Leave the status cells alone. A cleared cell reads as never sent, to you and to any tool that checks the column.
- If a send stopped in the middle, look up the last person in your Sent folder before you send the rest. Gmail's mail merge marks each of its emails there with a "Sent with mail merge" banner.
Gmail Help does not describe Gmail's own mail merge writing anything back to your sheet. With that tool, the status column is yours to fill in. HelloRows, which this site makes, fills it in as it sends, Sent with the time or the exact error, and a run stopped by the daily limit continues on its own once the limit allows.
Three ways to send email from Google Sheets
Which one fits depends on your account, how many people you write to, and how much you want to set up yourself.
| An add-on | Gmail's mail merge | Apps Script | |
|---|---|---|---|
| Where it runs | A sidebar in Sheets or in Gmail | Gmail's compose window | Code you paste into the sheet |
| Free gmail.com account | Usually; check the listing | No | Yes |
| Emails a day | The add-on's plan, within Gmail's limit | Up to 1,500 recipients | 100 recipients on gmail.com, 1,500 on Google Workspace |
| Column names in the subject and links | Varies | No | If you code it |
| A status in each row | Varies | Not described | If you code it |
| Unsubscribe link | Varies | Added to every email | Only if you write one |
| Cost | Free plans with a small daily limit, or paid | Part of some paid plans | Free |
An add-on
An add-on from the Google Workspace Marketplace adds a mail merge to Sheets or to Gmail, usually in a sidebar. You write the email there, preview it and send, with nothing to code. Before you pick one, check four things on its listing and pricing page:
- Your account. Whether it works with a free gmail.com account, or with your Google Workspace edition.
- The daily limit, and the billing. Free plans are small: YAMM's sends to "Up to 20 recipients / day," and Mail Merge by Kevin Stratvert, a free add-on, to 100 a day on a personal Gmail account, its listing says. For a paid plan, check whether it bills monthly or a year up front. What each paid plan costs: mail merge pricing.
- Whether it writes a status into each row. Without one, you do the bookkeeping above by hand.
- What it can access. Google lists the permissions when you install. "Send email on your behalf" can only send. "Read, compose, send, and permanently delete all your email from Gmail" covers your whole mailbox.
HelloRows' homepage answers the four: gmail.com and Business Starter, 50 emails a day free or $9 a month billed monthly, a status in every row, and access to only the spreadsheet it is opened in and the Google Drive files you pick for attachments, with a Gmail permission that can only send. The free plans side by side: Free mail merge for Gmail.
Gmail's built-in mail merge
If your plan has it, Gmail can merge from a sheet with nothing to install. Gmail Help lists Workspace Individual, Business Standard, Business Plus, Enterprise Standard, Enterprise Plus, Education Standard and Education Plus. Free gmail.com accounts and Business Starter are not on the list.
- In Gmail, click Compose.
- On the right of the To line, click Use mail merge, then turn on Mail Merge.
- Click Add from a spreadsheet, select the sheet and click Insert.
- Choose the columns with the email address and the first name (the last name is optional), then click Finish.
- In the message, type @ and pick a column.
Know its limits before you write. The list has to be in the first tab. Column names don't work in the subject or in link text. With a spreadsheet as the list, you can't add Cc or Bcc. Gmail adds an unsubscribe link to the bottom of every email. It sends to up to 1,500 recipients a day and keeps the other 500 of a 2,000 daily limit for regular email. More: Gmail's built-in mail merge, which plans have it and what it can't do.
Apps Script, written by hand
Apps Script is free and comes with every Google account. A script attached to your sheet reads its rows and sends each email through your Gmail. You decide what it does, and you fix it when it breaks.
Google publishes a ready-made mail merge sample: a sheet with the script attached, which takes the email from a Gmail draft. It sends with GmailApp, which needs the Gmail permission Google describes as "Read, compose, send, and permanently delete all your email from Gmail." The shorter script below sends with MailApp instead, which Google's reference says "cannot access a user's Gmail inbox."
A script that sends one email per row and writes its status
const SUBJECT = 'Membership fee due {{Due date}}';
const BODY = 'Hi {{First name}},\n\nYour Riverside Rowing Club fee of {{Amount}} ' +
'is due on {{Due date}}. You can pay it here: {{Invoice link}}\n\nThanks, Anna';
function sendEmails() {
const sheet = SpreadsheetApp.getActiveSheet();
const rows = sheet.getDataRange().getDisplayValues(); // as the sheet shows them
const names = rows[0];
const col = (name) => names.indexOf(name);
const used = ((SUBJECT + BODY).match(/\{\{.+?\}\}/g) || [])
.map((tag) => tag.slice(2, -2));
const missing = ['Email', 'Status', ...used]
.filter((name) => names.includes(name) === false);
if (missing.length > 0) throw new Error('No column named ' + missing.join(', '));
const zone = SpreadsheetApp.getActive().getSpreadsheetTimeZone();
for (let i = 1; i < rows.length; i++) {
const row = rows[i];
if (row[col('Status')]) continue; // sent or failed before
if (MailApp.getRemainingDailyQuota() < 1) break; // the rest another day
const fill = (text) =>
text.replace(/\{\{(.+?)\}\}/g, (tag, name) => row[col(name)]);
let status;
try {
MailApp.sendEmail(row[col('Email')], fill(SUBJECT), fill(BODY));
status = 'Sent ' + Utilities.formatDate(new Date(), zone, 'yyyy-MM-dd HH:mm');
} catch (error) {
status = 'Error: ' + error.message;
}
sheet.getRange(i + 1, col('Status') + 1).setValue(status);
SpreadsheetApp.flush(); // write each status now, in case the run stops
}
}
To run it, open the sheet, click Extensions, then Apps Script, paste the code over what is there and save. Choose sendEmails and click Run. The first time, Google asks for permission. For a script of your own it may warn "This app isn't verified"; Google's sample page says to select Advanced, then "Go to {Project Name} (unsafe)."
What it does: it stops before sending if a column name in the email matches no column, skips rows whose status is filled in, stops when the day's limit is used up, and writes Sent with the time, or the error, after each email. Run it again to continue with the rows still empty; a failed row waits until you fix the cell and clear its status.
What it doesn't do: it sends plain text, it has no preview, and it sends to rows a filter hides. For a test, run it first on a copy of the sheet with only your own row.
Questions
Can I use Google Sheets for a mail merge?
Yes. The sheet holds the list: one person per row, a column of email addresses, and a column for each detail that changes from person to person. The sending happens through Gmail, with an add-on, with Gmail's own mail merge on some Google Workspace plans, or with an Apps Script you write. Each person gets their own email from your address.
Does Google have a mail merge tool?
Yes, in Gmail, on some plans: Gmail Help lists Workspace Individual and the Business, Enterprise and Education plans from Standard up. It can take its list from a Google Sheets spreadsheet and sends to up to 1,500 recipients a day. Free gmail.com accounts are not on the list; there, an add-on or an Apps Script does the job.
Can I mail merge from Google Sheets for free?
Yes. An Apps Script costs nothing and can send to 100 recipients a day from a gmail.com account, by Google's figures. Many add-ons have a free plan with a small daily limit: YAMM's sends to up to 20 recipients a day, and Mail Merge by Kevin Stratvert, a free add-on, to 100 on a personal Gmail account (read Oct 26, 2026). Gmail's own mail merge comes only with some paid Google Workspace plans.
How do I enable mail merge in Gmail?
Open Gmail, click Compose, then click Use mail merge on the right of the To line and turn on Mail Merge. If the button is not there, your plan probably does not include it: Gmail Help lists only Workspace Individual and the Business, Enterprise and Education plans from Standard up. On a free gmail.com account, use an add-on or an Apps Script instead.
Sources
- Gmail Help: Send personalized emails with mail merge, read Oct 26, 2026
- Gmail Help: Limits for sending & getting mail, read Oct 26, 2026
- Apps Script: Create a mail merge with Gmail & Google Sheets, read Oct 26, 2026
- Apps Script: Quotas for Google Services, read Oct 26, 2026
- Apps Script reference: Class MailApp, read Oct 26, 2026
- Apps Script reference: Class GmailApp, read Oct 26, 2026
- Apps Script reference: Class Range, read Oct 26, 2026
- Apps Script reference: Class SpreadsheetApp, read Oct 26, 2026
- Apps Script: Container-bound scripts, read Oct 26, 2026
- Gmail API: Choose Gmail API scopes, read Oct 26, 2026
- YAMM: Pricing, read Oct 26, 2026
- Google Workspace Marketplace: Mail Merge by Kevin Stratvert, read Oct 26, 2026
Who wrote this
Adam Martiník makes HelloRows, a Google Sheets™ add-on that sends one email per row from your own Gmail. It writes each row's status into the sheet, Sent with the time or the exact error, and skips rows that already say Sent: the bookkeeping this guide asks you to keep. Its free plan sends 50 emails a day.