Coder Social home page Coder Social logo

cwg83 / google-sheets-mail-merge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 20 KB

This is a Google Apps script that allows you to Mail Merge using Google Docs/Sheets

JavaScript 100.00%
google-apps-script javascript mail-merge google-docs google-sheets

google-sheets-mail-merge's Introduction

About

This is a Google Apps script written in Javascript used for mail merging an email and attached PDF within Google docs, using a Form as a way to fill in the spreadsheet with merge Keys. The code executes on submition of the form.

Usage

  1. Create a new Google Sheet and name it whatever you like.
  2. Add a form to your sheet: Click Tools > Create a form. This script is made for a 7 question form, but you can add more into the code. The second question on the form is the email address to which the email and pdf file are sent.
  3. Add the script to the Google Sheet: Click Tools > Script editor to open the script editor, then copy the script code from this file into your script editor. Save and reload your Google sheet.
  4. Create a new Google Document and name it whatever you like.
  5. Replace EXAMPLEID123 and DOCUMENT NAME with the ID and name of your template document, respectively. The ID of a document can be derived from the URL:
https://docs.google.com/document/d/DOCUMENTID/edit
  1. Optional: Add an email to the cc variable that will be CCd when the email is sent.

You will need to give permission to the script in order for it to send emails on your behalf as well as view and utilize other documents in your drive.

google-sheets-mail-merge's People

Contributors

cwg83 avatar

Watchers

 avatar

Forkers

aplater

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.