Skip to content
Digital Inspiration DocsDigital Inspiration Docs

The email template is the one common email you write for everyone on your list. The template includes merge fields in double curly braces, like {{First Name}}, and content that doesn’t change for each recipient.

Say you met people at a trade show and want to invite them to a meetup in their city. Your Google sheet has a column for each detail:

First Name City Email Address
Angus New York angus@example.com
Sofia Lisbon sofia@example.org

You write the template once, with merge fields for the city and name:

Angus gets an email with the subject See you in New York, Angus?, and Sofia gets See you in Lisbon, Sofia?

A merge field is a column title from your sheet in double curly braces, like {{City}}. You can use merge fields in the subject, the preview text and the message.

Go to Extensions > Mail Merge with Attachments > Open Mail Merge and move to the Template step. Under Editor, pick where you want to write the email: in the add-on, in a Gmail draft, in HTML, or in Markdown, plain text or Google Docs. Which editor should you use? compares all the editors.

  1. Type the column title in double curly braces where you want the value to go, like {{City}}. Or click the (x) icon at the right end of the Subject, Preview text or Message box and pick a column.

    Mail Merge Template step with City and First Name merge fields in the subject and message, and an (x) icon at the right end of each box
    Click (x) at the end of a box to pick a column instead of typing it.
  2. Click Send Test Email at the bottom of the Template step and send the email to yourself. Check that each merge field shows a value from your sheet.

You can use as many merge fields as you like, and the same field more than once, in the subject, the preview text and the message. CC, BCC and the reply-to address take merge fields too, so each email can copy a different person or send replies to a different inbox. Dates, amounts and links arrive the way the cell shows them.

An Embed marker puts something other than text in the message. You type a marker the same way as a merge field, with the name of what to add in front:

To add Type in the message
A QR code for each person {{Embed QR Code, {{Seat}}, width=200}}
A different picture in each email {{Embed Image, {{Photo}}, width=500}}
A link with your own text {{Embed Link, Book your seat, {{Booking Link}}}}
A file attachment {{Embed File, Directions to the venue.pdf}}
A table from a Google Sheet {{Embed Range, 1AbC…789, address=Schedule!A1:C8}}

See how to use Embed markers for all seven markers and their options.

  • Merge fields ignore capital letters, spaces and most punctuation, so {{first name}}, {{FirstName}} and {{First_Name}} all match a column called First Name. Symbols such as #, % and $ are part of the name. {{Order}} doesn’t match a column called Order #. See how merge fields match column titles.
  • If a merge field doesn’t match any column title, Mail Merge replaces the field with a blank and shows no warning. An empty cell also leaves a blank and turns Hi {{First Name}}, into Hi ,. A test email catches both problems, and a fallback column fixes the second.
  • Older templates with fields in angle brackets, like <<First Name>>, still work.
  • Column titles come from row 1 of your sheet. If you rename a column, update the merge fields that use it.