11
Mail Merge with Gmail Use Mail Merge with Gmail to send personalized email messages to a large group of people from your Gmail account. The program is written in Google Apps Script and includes support for email aliases and Gmail templates. Google only allows 100 emails per day so the Mail Merge program will split bigger jobs into smaller batches and execute them at custom intervals so as not to exceed the daily quota. See this video tutorial on Youtube for a quick demo. Step 1 Compose a draft message in Gmail. You can add inline images , one or more file attachments and also include recipients in the CC and BCC fields. The variable columns are written in the format $%COLUMN-NAME%. For instance, if you have a column named First Name in the Google Spreadsheet, you can add this variable in the Gmail draft message as $%First-Name% Mail Merge for Gmail Digital Inspiration www.labnol.org Page 1

Gmail Mail Merge

Embed Size (px)

DESCRIPTION

Use Mail Merge with Gmail to send personalized email messages to a large group of people from your Google account. Available at http://labnol.org/?p=20981

Citation preview

Page 1: Gmail Mail Merge

Mail Merge with GmailUse Mail Merge with Gmail to send personalized email messages to a large group of people fromyour Gmail account.

The program is written in Google Apps Script and includes support for email aliases and Gmailtemplates. Google only allows 100 emails per day so the Mail Merge program will split bigger jobsinto smaller batches and execute them at custom intervals so as not to exceed the daily quota.

See this video tutorial on Youtube for a quick demo.

Step 1Compose a draft message in Gmail. You can add inline images, one or more file attachments andalso include recipients in the CC and BCC fields. The variable columns are written in the format$%COLUMN-NAME%. For instance, if you have a column named First Name in the GoogleSpreadsheet, you can add this variable in the Gmail draft message as $%First-Name%

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 1

Page 2: Gmail Mail Merge

Step 2Open the Google Spreadsheet link that you received in my email and click "Yes, make a copy" tocreate a copy of the sheet in your Google Drive.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 2

Page 3: Gmail Mail Merge

Step 3Open the Mail Merge sheet and add the variable fields that you have included in the Gmail draftmessage.

For instance, in our example, we have 2 variable fields - First Name and Tour Date. We also need tohave a separate column for Email Address (the address of the recipient) and Mail Merge Status (thatwill indicate whether the mails have been sent to the recipients or not).

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 3

Page 4: Gmail Mail Merge

Step 4Fill the sheet with the required data but keep the last column (Mail Merge Status) blank.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 4

Page 5: Gmail Mail Merge

Step 5Go to the Mail Merge Menu and click Initialize.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 5

Page 6: Gmail Mail Merge

Step 6Click OK at the authorization prompt

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 6

Page 7: Gmail Mail Merge

Step 7You'll see the permissions dialog. Click Accept here. You are running the script in your own GoogleDrive and no one else other than you will have access to any of your data.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 7

Page 8: Gmail Mail Merge

Step 8Go to the Mail Merge Menu again and click the Configure option.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 8

Page 9: Gmail Mail Merge

Step 91. Select the column in the spreadsheet that contains the recipient's emai address.2. Select the Gmail template that you created in the previous step.3. Choose your Gmail alias that will appear as the FROM address4. Enter the replyTo address where you would like to receive replies5. Enter your name that will appear in the message header.

Click the Initiate Mail Merge button to save your changes. It make take 10 seconds for GoogleSheet to close the dialog, so please do not press the button twice.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 9

Page 10: Gmail Mail Merge

Email OutputThe program will now run Mail Merge in the background and you may close the Google sheet. Thefirst batch of emails will go approximately 2 minutes after you have clicked the Mail Merge button.

You can check the Sent Items folder of your Gmail mailbox to see all the sent message. Here's asample of how the mails will look like in the recipient's mailbox.

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 10

Page 11: Gmail Mail Merge

Mail Merge - Daily LimitYou can only send mails to a maximum of 100 recipients per day using Google Scripts. For instance,if you are sending a mail merge to two addresses - one in the To list and other CC list - that will becounted as 2 messages and you'll then be able to send only 50 mails that day.

That's a limitation imposed by Google to prevent abuse of the platform.

You can however use the Mail Merge program to send mails to even larger groups and the script willautomatically split the job into smaller batches to prevent itself from exceeding the quota. Forinstance, if you are sending mails to 150 recipients, the program will send mails to the 1st 100recipients in the first day and the next 50 will get the mails the next day when the quota has reset.

For help and support, contact the author at [email protected]

Twitter: http://twitter.com/labnol

Web: Digital Inspiration

Mail Merge for Gmail

Digital Inspiration www.labnol.org Page 11