Skip to content
Digital Inspiration DocsDigital Inspiration Docs

How to Send Personalized Attachments with Mail Merge

The Mail Merge with Attachments add-on for Google Sheets can send each person their own file from Google Drive, like an invoice or certificate. You can also send everyone the same file, like a price list, or combine both in one email.

Each person’s files go in the File Attachments column of your sheet, or in an Embed File marker in the message. Everyone in the email’s To, CC and BCC fields receives the same attachments.

Find the case that sounds most like yours.

Your situation What to do
Everyone gets the same file, like a price list Attach it to your Gmail draft. If you use another editor, put its link in every row or name it in the email body.
Each person gets a file you can find by name, like invoices for a dozen clients Use smart chips. Type @ and a few letters of the name in each row, and hover over the chip to check the file.
Hundreds of files named after a column in your sheet, like payslips exported from payroll as EMP-1042.pdf Attach files by name. One formula fills every row.
Each person gets several files, like the final designs for each client’s project Pick files from Google Drive and select all of that person’s files at once. Mail Merge adds the file links to the row.
Files whose names don’t match anything in your sheet, like IMG_4127.jpg photos from an event List the folder’s files, then pick each person’s photo from a dropdown.
Files in a shared drive, like contracts your legal team keeps there Paste Drive links or use smart chips. File names, the file picker and the folder list don’t work with shared drives.
Files on your computer, like signed forms you just scanned Upload them from your computer. Mail Merge saves the files to your Drive and adds their links for you.
Two campaigns on one sheet that need different files, like a welcome pack and a monthly invoice Name the files in each email with an Embed File marker, so the attachments belong to the template and not to the sheet.

For a short list, smart chips are the easiest. You see each file’s name in the sheet and can hover over the chip to preview the file. For a long list, use a formula if your file names match a column in the sheet.

New to the add-on? Follow the quickstart to prepare a sheet and email template, then attach one PDF to a test email:

  1. Make sure your sheet has a column called File Attachments. The starter sheet already has one.

  2. In Google Drive, right-click a PDF, choose Share and then Copy link.

  3. In your sheet, paste the link in the File Attachments cell of row 2, the first person on your list.

  4. Go to Extensions > Mail Merge with Attachments > Open Mail Merge, open your campaign and move to the Template step. Click Send Test Email.

  5. Enter your own address in Email address. The File Attachments field already shows the file from row 2. Click Send Test Email.

  6. Open the test email in Gmail. Open the PDF and check its contents.

Maya runs a design studio. At the end of the month, she sends invoices to Angus and Daniel. Daniel also gets a logo pack he asked for. Every client gets next year’s price list. Sofia has nothing to pay this month, so she only gets the price list.

Google Sheet

First NameFile Attachments
AngusINV-1042 Fernhill Bakery.pdf
DanielINV-1043 Okafor Architects.pdfOkafor Logos.zip
Sofia

Emails sent

  • To: AnguspdfINV-1042 Fernhill Bakery.pdfpdfPrice List 2027.pdf
  • To: DanielpdfINV-1043 Okafor Architects.pdfzipOkafor Logos.zippdfPrice List 2027.pdf
  • To: SofiapdfPrice List 2027.pdf
Each row's File Attachments cell decides that person's files. The price list is attached to the Gmail draft, so it goes to everyone.

Maya sends one mail merge. The individual files come from the chips in each row. Maya attaches the price list to her Gmail draft, so the price list goes to everyone. All the files arrive as regular attachments.

Different rows can use different methods. Say most of Maya’s invoices are smart chips. One client’s invoice is in a shared drive that her accountant set up, so that row has a Drive link instead.

A File Attachments cell can hold several files. For typed links, names or paths, separate them with commas or put each on its own line. While editing the cell, press Ctrl+Enter (⌘+Enter on a Mac) for a new line. For chips, add a file chip for every attachment.

A test email checks one row. Before you send invoices or anything private, also make sure every row has the right file.

  1. Go to Extensions > Mail Merge with Attachments > Open Mail Merge, move to the Template step and click Send Test Email.

  2. Enter your own address in Email address. The File Attachments field starts with the files from row 2.

    Mail merge test email form with invoice PDF in the File Attachments field
    The test email attaches the files in the File Attachments field.
  3. Send the test. Open each attachment and check its contents. If you use a Gmail draft, check that the common files are attached too.

  4. To test another row, replace the File Attachments field with that row’s files, separated by commas, and send again. Use Drive links for files picked with chips. For a long list, test the first, a middle and the last row.

If your plan includes Create email drafts, you can check every row without emailing anyone. Mail Merge creates a Gmail draft with the attachments for each row. Mail Merge also writes any attachment errors in the status column.

  1. Open Mail Merge, click Create and choose Create email drafts. Pick the same sheet and template as your real campaign, and run the drafts campaign.

  2. In Gmail, open a few drafts from the Drafts folder and check their attachments. In the sheet, look for rows that say Invalid attachment and fix them.

  3. Delete the drafts in Gmail. In the sheet, select the Mail Merge Status column below the header and press Delete. Your real campaign then sends to every row.

When you’re ready, send the campaign and check the results.

File in Drive What the recipient gets
PDFs, images, Word, Excel, PowerPoint, ZIP and other uploaded files The file as it is
Google Docs, Sheets, Slides and Drawings A PDF of the file, named after the file: Statement of Work.pdf
Folders, Google Forms, Sites and shortcuts Nothing. Mail Merge skips the recipient’s email and writes the reason in the Mail Merge Status column

Recipients get a copy of each file. Recipients don’t need access to the original in Drive. You don’t need to change the file’s sharing settings.

Mail Merge picks up each Drive file when the email goes out, not when you set up the mail merge. If you schedule your emails, you can keep editing a Google Doc until the send time. Recipients get the latest version.