How to email invoices to each customer from Google Sheets
Export one PDF per invoice from the tool you bill with, and name each file after its invoice number. List the invoices in a Google Sheet, one per row, with the customer's email address. A mail merge add-on then sends each customer their own invoice. In BetterMerge, you pick the PDFs in Google Drive and it matches each one to its row by invoice number, with the files kept private in your Drive.
Updated Facts checked 6-minute read
Emailing invoices is two jobs:
- Make the invoices: one PDF per invoice, from your invoicing or accounting tool, or from an invoice template you fill in. BetterMerge doesn't create or calculate invoices.
- Send them: one email per row of your sheet, each with that customer's invoice attached and their amount and due date in the text. In BetterMerge, on Plus and Pro.
Make the invoices first
BetterMerge sends invoices you already have. It doesn’t create invoices, add up amounts or take payments, so start from the tool you bill with:
- Your invoicing or accounting tool. Download each invoice as a PDF. Many tools already put the invoice number in the file name, which is all the matching needs.
- An invoice template in Google Docs or Sheets. Make a copy for each invoice and fill it in. You can leave each copy as a Google file: BetterMerge sends Google Docs, Sheets and Slides files as PDFs.
Statements work the same way: one file per customer, named after their account number or customer ID.
Put the files in one folder in Google Drive and keep them private. Gmail’s own mail merge and Google’s Apps Script sample attach the same file to every email, so neither can send each customer their own invoice without changing code. How to mail merge with attachments compares the ways in full.
Name each invoice after its invoice number
An invoice number is the best value to match on: each one is unique, and it’s usually in the file name already. Your sheet lists one invoice on each row, with the customer’s email address, a Contact name and the details the email needs:
| Invoice No | Amount | Due Date | File in Drive |
|---|---|---|---|
| 1042 | $1,250.00 | 15 Jan 2027 | Invoice-1042.pdf |
| 1043 | $380.00 | 15 Jan 2027 | Invoice-1043.pdf |
With these names, the rule is Invoice-{{Invoice No}}. The rule has to match the whole file name, apart from the extension, and upper and lower case don’t matter. Avoid a * in invoice rules: {{Invoice No}}* for invoice 104 would also match 1042.pdf.
Merge tags and file names use the value as your sheet shows it. So an amount formatted as currency appears that way in the email, and an invoice number typed as 00123 into a number column shows, and matches, as 123. Format the invoice number column as Plain text before you type leading zeros.
Keep customers’ invoices private
An invoice carries a customer’s name, address and what they owe. Three things keep it with the right person:
- The files stay private. With Files from Google Drive, you don’t share the invoices with anyone. BetterMerge reads only the files you picked, with your own Google account, when each email goes out.
- A row with no file or two files isn’t sent. Choose Skip the row for missing files. A row whose rule matches more than one file is always skipped: BetterMerge never guesses which file is the right one.
- You check before you send. The match review lists every row that didn’t match, the preview shows each row’s file name, and a test email carries the real PDF.
BetterMerge can also attach files from Drive links in the sheet, but each file must then be shared with anyone who has the link, so don’t use that route for invoices.
Send each customer their invoice
These steps use BetterMerge, in the Google Sheets add-on or the web app. In Plus and Pro
What you need
- A Google Sheet with one invoice on each row: the customer’s email address, the invoice number, and any amount or due date you want in the email
- The invoices in Google Drive, one PDF or Google file each, named after the invoice number
- BetterMerge’s Plus or Pro plan
Step 1: Write the email
Create your campaign and pick your sheet, then write one email with merge tags for the invoice details, like the samples below.
Step 2: Pick the invoices in Google Drive
On the Attachments tab, choose Files from Google Drive and click Select files (1). Open the folder with this batch of invoices and select them. Then write the file name rule (2), such as Invoice-{{Invoice No}}. The attachments guide shows each of these screens in more detail.

Step 3: Skip any invoice that's missing
Under When a row has no matching file (3), keep Skip the row and mark it “Attachment missing”. An invoice email without the invoice is worse than no email.
Step 4: Check the match review and send yourself a test
The Match review (4) should show every row matched. Fix any file names it lists, then step through a few rows on the Preview tab and check that each invoice number, amount and file name agree. Send yourself a test and open the PDF.
Step 5: Start the campaign
Click Start campaign. Each customer gets an email from your Gmail with their own invoice attached, and it shows in your Sent folder like any other email. A row skipped for its invoice gets a status in your sheet, such as ATTACHMENT MISSING.
Sample invoice emails
Each merge tag takes its value from the column with the same name, so {{Amount}} needs an Amount column and {{Contact}} a Contact column.
The invoice
{{Invoice No}} from Lakeside StudioHi {{Contact}},
Your invoice {{Invoice No}} for {{Amount}} is attached. It’s due on {{Due Date}}.
You can pay by bank transfer to the details on the invoice. Reply to this email if anything on it looks wrong.
Thanks,
Dana
If your invoicing tool gives each invoice a payment link, add the links as a column and put {{Payment Link}} in the email.
A reminder for unpaid invoices
BetterMerge doesn’t know who has paid, so keep a Paid column in your sheet and mark each invoice as it’s paid. Before you send reminders, filter the sheet to show only unpaid invoices: BetterMerge skips rows that are filtered out or hidden. Then send a new campaign with the invoice attached again, and keep the filter on until it has finished sending.
{{Invoice No}} is due on {{Due Date}}Hi {{Contact}},
A quick reminder that invoice {{Invoice No}} for {{Amount}} is due on {{Due Date}}. I’ve attached it again so it’s easy to find.
If you’ve already paid, thank you, and please ignore this email.
Thanks,
Dana
Common problems
An invoice is missing
The row says Attachment missing when no file name matched the rule. Compare the invoice number in the sheet with the file name: a prefix such as INV- in one and not the other, or a dropped leading zero, is the usual cause. Rename the file or change the rule, and the match review updates.
An invoice matched two files
The row says Attachment ambiguous and isn’t sent. It usually means the folder has two versions of one invoice, such as a corrected copy, or a PDF and a Google Docs file with the same name. Remove the old one, or select only the files for this batch.
The amount or date looks wrong in the email
Merge tags show the value as your sheet displays it. Format the column in Google Sheets, such as Format › Number › Currency for amounts, and the preview updates.
I want to attach the invoice and a statement
Click Add another attachment and add a second rule, such as Statement-{{Customer ID}}. Each rule attaches one file, and both count towards your plan’s number of files per email. See the limits by plan.
Can I see whether a customer opened the invoice?
BetterMerge tracks whether people open the email and click its links, not whether they open or download the attachment.
Sources
- Gmail Help: Send personalized emails with mail merge, checked
- Apps Script sample: Create a mail merge with Gmail & Google Sheets, checked
- Gmail Help: Send attachments with your Gmail message, checked
- BetterMerge: plans, checked
- BetterMerge docs: Add personalized attachments, checked
- BetterMerge docs: Skip sending emails to some rows, checked