Mail Merge (2024)

Description:

If you want to send a message to multiple recipients, there are a few common problems:

1) When you add the recipients in the To field, the recipients will see each other. (You can work around this problem by adding the recipients in the Bcc field.)

2) Most email providers limit the number of recipients in the To / Cc / Bcc field. (You can work around this problem by creating multiple messages.)

3) You cannot personalize the message. (You cannot work around this problem.)

You can work around some of these problems, but especially the last problem cannot be solved without creating individual messages. Of course there are third party services, that help you to send newsletters; but you have to trust them.

Mail Merge solves these problems by creating an individual and personalized message for each recipient in the To field from a draft message - locally on your computer without the need to trust third party services!

----------------------------------------------------------------------------------------------------

Step by Step: (Address Book)

Screenshots: Draft Message | Draft Message | Draft Message | Mail Merge Dialog

  1. Create a New Message ("File -> New -> Message")
  2. Add the contact(s), the mailing list(s) or the variable(s) into the To field, e.g.:
    {{PrimaryEmail}} or {{FirstName}} {{LastName}} <{{PrimaryEmail}}>
  3. Add the subject (variables are supported)
  4. Add the body (variables are supported)
  5. Add (global) attachments (optional)
  6. Click the menu item "File -> Mail Merge" (Thunderbird 78 / 91) / "Tools -> Mail Merge" (Thunderbird 102 / 115) or the toolbar button "Mail Merge" (Thunderbird 78 / 91 / 102 / 115)
  7. Select "Address Book" as "Source"
  8. Add (individual) attachments (optional) (variables are supported)
  9. Check "Start", "Stop" and "Pause" (optional)
  10. Check "Deliver Mode"
  11. Click "Send"

The draft message is saved as a template in the "Templates" folder of your current account and for each recipient an individual and personalized message is automagically created in the folder "Local Folders -> Outbox"; ready for delivery via "File -> Send Unsent Messages".

----------------------------------------------------------------------------------------------------

Step by Step: (CardBook)

Screenshots: Draft Message | Draft Message | Draft Message | Mail Merge Dialog

  1. Create a New Message ("File -> New -> Message")
  2. Add the contact(s), the mailing list(s) or the variable(s) into the To field, e.g.:
    {{email}} or {{firstname}} {{lastname}} <{{email}}>
  3. Add the subject (variables are supported)
  4. Add the body (variables are supported)
  5. Add (global) attachments (optional)
  6. Click the menu item "File -> Mail Merge" (Thunderbird 78 / 91) / "Tools -> Mail Merge" (Thunderbird 102 / 115) or the toolbar button "Mail Merge" (Thunderbird 78 / 91 / 102 / 115)
  7. Select "CardBook" as "Source"
  8. Add (individual) attachments (optional) (variables are supported)
  9. Check "Start", "Stop" and "Pause" (optional)
  10. Check "Deliver Mode"
  11. Click "Send"

The draft message is saved as a template in the "Templates" folder of your current account and for each recipient an individual and personalized message is automagically created in the folder "Local Folders -> Outbox"; ready for delivery via "File -> Send Unsent Messages".

----------------------------------------------------------------------------------------------------

Step by Step: (CSV)

Screenshots: Draft Message | Draft Message | Mail Merge Dialog

  1. Create a New Message ("File -> New -> Message")
  2. Add the variable(s) into the To field, e.g.:
    {{Email}} or {{FirstName}} {{LastName}} <{{Email}}>
  3. Add the subject (variables are supported)
  4. Add the body (variables are supported)
  5. Add (global) attachments (optional)
  6. Click the menu item "File -> Mail Merge" (Thunderbird 78 / 91) / "Tools -> Mail Merge" (Thunderbird 102 / 115) or the toolbar button "Mail Merge" (Thunderbird 78 / 91 / 102 / 115)
  7. Select "CSV" as "Source"
  8. Select the file via "Browse"
  9. Check "Character Set" and "Field Delimiter"
  10. Add (individual) attachments (optional) (variables are supported)
  11. Check "Start", "Stop" and "Pause" (optional)
  12. Check "Deliver Mode"
  13. Click "Send"

The draft message is saved as a template in the "Templates" folder of your current account and for each recipient an individual and personalized message is automagically created in the folder "Local Folders -> Outbox"; ready for delivery via "File -> Send Unsent Messages".

----------------------------------------------------------------------------------------------------

Step by Step: (JSON)

Screenshots: Draft Message | Draft Message | Mail Merge Dialog

  1. Create a New Message ("File -> New -> Message")
  2. Add the variable(s) into the To field, e.g.:
    {{Email}} or {{FirstName}} {{LastName}} <{{Email}}>
  3. Add the subject (variables are supported)
  4. Add the body (variables are supported)
  5. Add (global) attachments (optional)
  6. Click the menu item "File -> Mail Merge" (Thunderbird 78 / 91) / "Tools -> Mail Merge" (Thunderbird 102 / 115) or the toolbar button "Mail Merge" (Thunderbird 78 / 91 / 102 / 115)
  7. Select "JSON" as "Source"
  8. Select the file via "Browse"
  9. Add (individual) attachments (optional) (variables are supported)
  10. Check "Start", "Stop" and "Pause" (optional)
  11. Check "Deliver Mode"
  12. Click "Send"

The draft message is saved as a template in the "Templates" folder of your current account and for each recipient an individual and personalized message is automagically created in the folder "Local Folders -> Outbox"; ready for delivery via "File -> Send Unsent Messages".

----------------------------------------------------------------------------------------------------

Step by Step: (XLSX)

Screenshots: Draft Message | Draft Message | Mail Merge Dialog

  1. Create a New Message ("File -> New -> Message")
  2. Add the variable(s) into the To field, e.g.:
    {{Email}} or {{FirstName}} {{LastName}} <{{Email}}>
  3. Add the subject (variables are supported)
  4. Add the body (variables are supported)
  5. Add (global) attachments (optional)
  6. Click the menu item "File -> Mail Merge" (Thunderbird 78 / 91) / "Tools -> Mail Merge" (Thunderbird 102 / 115) or the toolbar button "Mail Merge" (Thunderbird 78 / 91 / 102 / 115)
  7. Select "XLSX" as "Source"
  8. Select the file via "Browse"
  9. Check "Sheetname" (optional)
  10. Add (individual) attachments (optional) (variables are supported)
  11. Check "Start", "Stop" and "Pause" (optional)
  12. Check "Deliver Mode"
  13. Click "Send"

The draft message is saved as a template in the "Templates" folder of your current account and for each recipient an individual and personalized message is automagically created in the folder "Local Folders -> Outbox"; ready for delivery via "File -> Send Unsent Messages".

----------------------------------------------------------------------------------------------------

Deliver Mode Warning

Use "Send Now" as "Deliver Mode" at your own risk!

It is strongly recommended to use "Send Later" as "Deliver Mode" and to check the individual and personalized messages in the folder "Local Folders -> Outbox". Bugs in Thunderbird, bugs in Mail Merge and bugs in other add-ons may lead to unexpected and undesired results.

----------------------------------------------------------------------------------------------------

Save As Template:

The draft message is saved as a template in the "Templates" folder of your current account. This can be activated and deactivated in the Preferences in the Add-ons Manager.

----------------------------------------------------------------------------------------------------

Recipients Reminder:

Screenshot: Recipients Reminder

The "Recipients Reminder" shall prevent accidentally clicking on "Send Now" or "Send Later". To start Mail Merge please click "Cancel" and use the menu item "Tools -> Mail Merge" or the toolbar button "Mail Merge".

The "Recipients Reminder" can be activated and deactivated in the Preferences in the Add-ons Manager.

----------------------------------------------------------------------------------------------------

Variables Reminder:

Screenshot: Variables Reminder

The "Variables Reminder" shall prevent accidentally clicking on "Send Now" or "Send Later". To start Mail Merge please click "Cancel" and use the menu item "Tools -> Mail Merge" or the toolbar button "Mail Merge".

The "Variables Reminder" can be activated and deactivated in the Preferences in the Add-ons Manager.

----------------------------------------------------------------------------------------------------

Beta:

Use "Beta" at your own risk!

In order to create the individual and personalized messages, Mail Merge uses its own legacy function by default. If "Beta" is enabled, then Mail Merge will use the new MailExtension APIs.

---------------------------------------------------------------------------------------------------

Load / Reset / Save the Settings

The settings in the Mail Merge Dialog are not automatically loaded and saved anymore. You can still load and save the settings manually using the buttons "Load" and "Save". The button "Reset" will reset the settings to their defaults - just like before.

Unfortunately the selected files, i.e. CSVs, JSONs, ODSs, XLSXs and Attachments, are not remembered anymore. In order to access local files Mail Merge needs the explicit permission granted by the user - via selecting the appropriate files in the html:input:file elements. This permission cannot be saved and restored.

This change is caused by a limitation of the new MailExtension APIs.

---------------------------------------------------------------------------------------------------

Extension Shortcut

Screenshot: Extension Shortcut

In the Add-ons Manager click on the "Gear" / "Tools for all add-ons" button and select "Manage Extension Shortcuts". Then configure a shortcut to open the Mail Merge Dialog in the compose window, e.g. "Ctrl+Shift+S" (recommended).

---------------------------------------------------------------------------------------------------

Variables:

In order to personalize the messages you can use variables:

If you use Mail Merge with the contacts in the address books of Thunderbird or CardBook, then you can use the predefined variables (see below). If you use Mail Merge with a spreadsheet, e.g. a CSV, JSON, ODS or XLSX, then the column names can be used as variables.

Variables are supported in the fields From, To, Cc, Bcc, ReplyTo, Subject, Body and Custom Headers in the compose window as well as the field "Attachments" and "At" in the Mail Merge Dialog.

There are a couple of different variable types available:

{{name}}
The variable will be replaced by the value of the field name, e.g.:
{{FirstName}}: the variable will be replaced by the value of the field FirstName
{{LastName}}: the variable will be replaced by the value of the field LastName
{{PrimaryEmail}}: the variable will be replaced by the value of the field PrimaryEmail

{{name|if|then}}
If the value of the field name equals if, then the variable will be replaced by then.

{{name|if|then|else}}
If the value of the field name equals if, then the variable will be replaced by then, else by else.

{{name|*|if|then|else}} (includes)
If the value of the field name includes if, then the variable will be replaced by then, else by else.

{{name|^|if|then|else}} (starts with)
If the value of the field name starts with if, then the variable will be replaced by then, else by else.

{{name|$|if|then|else}} (ends with)
If the value of the field name ends with if, then the variable will be replaced by then, else by else.

{{name|==|if|then|else}} (equal to) (number)
If the value of the field name is equal to if, then the variable will be replaced by then, else by else.

{{name|>|if|then|else}} (greater than) (number)
If the value of the field name is greater than if, then the variable will be replaced by then, else by else.

{{name|>=|if|then|else}} (greater than or equal to) (number)
If the value of the field name is greater than or equal to if, then the variable will be replaced by then, else by else.

{{name|<|if|then|else}} (less than) (number)
If the value of the field name is less than if, then the variable will be replaced by then, else by else.

{{name|<=|if|then|else}} (less than or equal to) (number)
If the value of the field name is less than or equal to if, then the variable will be replaced by then, else by else.

Nested Variables:

Variables can be nested. For example: To create individual emails only for your premium customers, you can add this into the To field:
{{FirstName}} {{LastName}} <{{Premium|x|{{Email}}}}>
{{Premium|x|{{Email}}}}

Empty Variables:

Variables can be empty. For example: You can test for an empty variable:
{{DisplayName||Empty|NotEmpty}}

---------------------------------------------------------------------------------------------------

Address Book:
Addressbook Properties Supported by Thunderbird

{{DisplayName}}
{{FirstName}}
{{LastName}}
{{NickName}}
{{NamePrefix}}
{{NameSuffix}}
{{AdditionalNames}}
{{PrimaryEmail}}
{{SecondEmail}}
{{HomePhone}}
{{WorkPhone}}
{{CellularNumber}}
{{FaxNumber}}
{{PagerNumber}}
{{HomeAddress}}
{{HomeCity}}
{{HomeState}}
{{HomeZipCode}}
{{HomeCountry}}
{{WebPage2}}
{{WorkAddress}}
{{WorkCity}}
{{WorkState}}
{{WorkZipCode}}
{{WorkCountry}}
{{WebPage1}}
{{JobTitle}}
{{Department}}
{{Company}}
{{Custom1}}
{{Custom2}}
{{Custom3}}
{{Custom4}}
{{Notes}}
{{BirthYear}}
{{BirthMonth}}
{{BirthDay}}
{{AnniversaryYear}}
{{AnniversaryMonth}}
{{AnniversaryDay}}

---------------------------------------------------------------------------------------------------

CardBook:
CardBook

{{dirPrefId}}
{{cardurl}}
{{cacheuri}}
{{etag}}
{{updated}}
{{deleted}}
{{created}}
{{isAList}}
{{lastname}}
{{firstname}}
{{othername}}
{{prefixname}}
{{suffixname}}
{{fn}}
{{nickname}}
{{bday}}
{{gender}}
{{birthplace}}
{{anniversary}}
{{deathdate}}
{{deathplace}}
{{adr}}
{{tel}}
{{email}}
{{emails}}
{{impp}}
{{url}}
{{mailer}}
{{tz}}
{{geo}}
{{title}}
{{role}}
{{agent}}
{{org}}
{{categories}}
{{note}}
{{prodid}}
{{sortstring}}
{{uid}}
{{rev}}
{{version}}
{{class1}}
{{key}}
{{others}}
{{cbid}}
{{photo}}
{{logo}}
{{sound}}
{{kind}}
{{member}}

CardBook: (Address)

{{adr}}
{{adrpostoffice}}
{{adrextended}}
{{adrstreet}}
{{adrlocality}}
{{adrregion}}
{{adrpostalcode}}
{{adrcountry}}

CardBook: (Types)

The configured "Types" in the "CardBook Preferences" can be used by their "Code" as a first parameter for the properties address, email, impp, phone and url. For example:
{{adr#home}}
{{adr#work}}
{{adr#other}}
{{email#home}}
{{email#work}}
{{email#other}}
{{impp#home}}
{{impp#work}}
{{impp#other}}
{{tel#cell}}
{{tel#fax}}
{{tel#main}}
{{tel#pager}}
{{tel#home}}
{{tel#work}}
{{tel#other}}
{{url#home}}
{{url#work}}
{{url#other}}

CardBook: (Numbers)

In case you have multiple entries, you can use a number as a second parameter for the properties address, email, impp, phone and url. For example:
{{url#home#0}}
{{url#home#1}}
{{url#home#2}}

CardBook: (Custom Fields)

The configured "Custom Fields" in the "CardBook Preferences" can be used by its "Field Name". For example:
{{others#X-CUSTOM1}}
{{others#X-CUSTOM2}}
{{others#X-CUSTOM3}}
{{others#X-CUSTOM4}}

---------------------------------------------------------------------------------------------------

CSV:

Mail Merge supports CSVs with different character sets.

In the Mail Merge Dialog you must select the character set of the CSV. If you don't know the character set of the CSV, then it is recommended to use "windows-1252" under Windows and "utf-8" under Linux and macOS.

If "Automatic" is selected as the "Field Delimiter" in the Mail Merge Dialog, then the field delimiter is automatically detected by SheetJS. Alternatively you can select one of the available field delimiters (comma, semicolon, colon, tab) in the dropdown list.

The field delimiter may also be specified in the CSV itself using the metadata "sep=" in the very first line, e.g. "sep=#". In this case the character "#" is used as the field delimiter.

Specification:
records are separated by line breaks (\r, \n, \r\n)
fields are separated by field delimiters (comma, semicolon, colon, tab)
fields may be enclosed within text delimiters (double quote)
fields with embedded line breaks must be enclosed within text delimiters
fields with embedded field delimiters must be enclosed within text delimiters
fields with embedded text delimiters must be enclosed within text delimiters
embedded text delimiters must be doubled
first record must contain column names

Example: (Thunderbird 78 / 91)
FirstName,LastName,Gender,Email,Attachment
John,Doe,m,[emailprotected],C:\Path\To\Files\MyFile.pdf

Example: (Thunderbird 102 / 115)
FirstName,LastName,Gender,Email,Attachment
John,Doe,m,[emailprotected],MyFile.pdf

----------------------------------------------------------------------------------------------------

JSON: (Array of Arrays)

Mail Merge supports UTF-8 encoded files in JSON format with Array of Arrays.

Example: (Thunderbird 78 / 91)
[
["FirstName","LastName","Gender","Email","Attachment"],
["John","Doe","m","[emailprotected]","C:\Path\To\Files\MyFile.pdf"]
]

Example: (Thunderbird 102 / 115)
[
["FirstName","LastName","Gender","Email","Attachment"],
["John","Doe","m","[emailprotected]","MyFile.pdf"]
]

---------------------------------------------------------------------------------------------------

XLSX:

Mail Merge supports spreadsheets like ODS or XLSX. Support for spreadsheets is based on SheetJS.

---------------------------------------------------------------------------------------------------

Attachments: (Global)

Global Attachments, i.e. attachments which are the same for every recipient, can be added normally using the toolbar button "Attach" in the compose window.

Attachments: (Individual)

Individual Attachments, i.e. attachments which are different for every recipient, can be added in the field "Attachments" in the Mail Merge Dialog via variable(s). Multiple individual attachments can be separated by line breaks.

In Thunderbird 78 / 91 it was necessary to specify the filepath and filename, e.g. "C:\Path\To\Files\MyFile.pdf", in the field "Attachments" in the Mail Merge Dialog. See: Screenshot

In Thunderbird 102 / 115 it is necessary to specify the filename, e.g. "MyFile.pdf", in the field "Attachments" in the Mail Merge Dialog. Additionally you must select the files to be attached via the button "Browse". See: Screenshot

This change is caused by a limitation of the new MailExtension APIs.

Example: (Thunderbird 78 / 91)
C:\Path\To\Files\{{Attachment}}
{{Attachment}}

Example: (Thunderbird 102 / 115)
{{Attachment}}

----------------------------------------------------------------------------------------------------

Custom Headers:

Mail Merge supports Custom Headers with a "X-" prefix (variables are supported).

They can be configured via the hidden preference mail.compose.other.header in the "Config Editor". See: Custom Headers

----------------------------------------------------------------------------------------------------

Batch: (Start, Stop and Pause)

Pause: Pause between two consecutive messages in seconds (optional)

Start: Number of the first message (optional)

Stop: Number of the last message (optional)

Random Pause: (Thunderbird 102 / 115)

If the checkbox "Random" in the Mail Merge Dialog is enabled, then Mail Merge will pause at random between "0" and "X" seconds between each two consecutive messages - with "X" being the value in the input field "Pause".

If the checkbox "Random" in the Mail Merge Dialog is disabled, then Mail Merge will pause "X" seconds between each two consecutive messages - with "X" being the value in the input field "Pause".

---------------------------------------------------------------------------------------------------

Send Later:

Screenshot: Send Later

---------------------------------------------------------------------------------------------------

Line Breaks:

Thunderbird uses an HTML editor internally. You can create line breaks with <br>.

---------------------------------------------------------------------------------------------------

Links and Images:

Thunderbird uses an HTML editor internally. You can create (individual) links and (individual) images via "Insert -> HTML":
Link: <a href="{{link}}">
Image: <img src="{{image}}">

---------------------------------------------------------------------------------------------------

Libraries:

Logo and icons are based on FontAwesome; Support for spreadsheets is based on SheetJS.

Mail Merge (2024)

FAQs

Mail Merge? ›

Mail merge lets you create a batch of documents that are personalized for each recipient. For example, a form letter might be personalized to address each recipient by name.

What is mail merge and its steps? ›

Mail merging means to plug data from an address table into form letters, e-mail messages, envelopes, address labels, or a directory (a list or catalog, for example). To start a mail merge, choose Tools | Letters and Mailings | Mail Merge Wizard to open the Mail Merge task pane.

How do I mail merge from Excel to word? ›

How to mail merge from Excel to Word
  1. Create a Word document. ...
  2. Choose what kind of merge you want to run. ...
  3. Select the recipients. ...
  4. Connect Excel spreadsheet and Word document. ...
  5. Refine the recipient list. ...
  6. Add Address Block and Greeting Line. ...
  7. Insert merge fields. ...
  8. Preview the results.
Aug 24, 2023

Is mail merge in Microsoft Word? ›

When you use the Word Mail Merge feature, Word merges a main document with a recipient list to generate a set of output documents: The main document contains the basic text that is the same in all of the output documents.

How to create a mail merge template? ›

Open MS Word and choose a new document or an existing document that you would like to use as a Mail Merge template. Click the “Insert” tab from the Menu bar and choose “Field” from the “Quick Parts” list. Choose “Mail Merge” from the “Categories” list. Select “MergeField” from the “Field names” list.

Where do I find mailings in Excel? ›

Mailings in Excel is located in the Ribbon menu, which is the main navigation area of the Excel application. To access the Mailings feature, select the “Mailings” tab in the Ribbon menu. This will open the Mailings menu, which contains all of the features associated with Mailings.

What are the 3 basic steps of mail merge? ›

Creating a data source. Defining the merge fields in the main document. Merging the data with the main document.

How do I insert a mail merge field in Word? ›

Add individual merge fields
  1. Click or tap where you want the merge field.
  2. Choose the down-arrow under Insert Merge Field, and select a field.
  3. If you don't see your field name in the list, choose Insert Merge Field.
  4. Choose Database Fields to see the list of fields that are in your data source.
  5. Choose Insert.

How do I merge documents in Word? ›

Here's a 5-step guide to get you started:
  1. Open Microsoft Word. Go to the “Insert” tab.
  2. Click “Object” in the “Text” group. Select “Text from File”.
  3. Choose the first file you want to merge, then click “Insert”.
  4. Do this again for each other file you wish to combine.
  5. Review the merged file and save your work.

Can you send a mail merge from Excel? ›

Save the mail merge document: Save the mail merge document as a Word file (. docx). Make sure to save the file in a location that is accessible to the person who will be using it. Send the files: Send both the mail merge document and the Excel data source file to the person who will be using them.

How do I mail merge from Excel to Avery labels? ›

Once your label sheet opens in Word,
  1. Click Select Recipients and Use Existing List.
  2. Browse your files to find your Excel spreadsheet and click Open. ...
  3. Click Address Block or Insert Merge Field to arrange your data how you want.
  4. Click Update Labels to make format apply to all of the labels.

What is an example of a mail merge in Word? ›

The four types of mail merge main documents are letters, envelopes, mailing labels and catalogues. The mail merge feature of MS Word allows us to create labels, envelopes, and letters with personalized input.

Is mail merge free? ›

✔️ No sign-up required. ✔️ Free and fast customer service. ✔️ Free from advertising or watermarks. ✔️ Mail Merge into emails, envelopes, letters and certificates.

What are the disadvantages of mail merge? ›

Disadvantages of Mailmerge
  • Moving the data file, and renaming fields, can cause the mailmerge to fail, as the word processor program won't be able to find them.
  • The database that provides the information, must be kept up to date.
  • It's unlikely that every letter produced, will be checked for errors.

What is mail merge in Excel with example? ›

Mail merge lets you create a batch of documents that are personalized for each recipient. For example, a form letter might be personalized to address each recipient by name.

What do you mean by mail merge in Excel? ›

Mail merge entails combining mail and letters and pre-addressed envelopes or mailing labels for mass mailings from a form letter. In other words, it is the automatic addition of names and addresses from a database to letters and envelopes This feature is usually employed in a word processor.

How to merge cells in Excel? ›

Select the first cell and press Shift while you select the last cell in the range you want to merge. Important: Make sure only one of the cells in the range has data. Select Home > Merge & Center. If Merge & Center is dimmed, make sure you're not editing a cell or the cells you want to merge aren't inside a table.

Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6605

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.