Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unforswearing/gas-send-email
A better form submission notification message for Google Apps Script Form and Spreadsheet projects.
https://github.com/unforswearing/gas-send-email
google-apps-script google-forms google-sheets
Last synced: 24 days ago
JSON representation
A better form submission notification message for Google Apps Script Form and Spreadsheet projects.
- Host: GitHub
- URL: https://github.com/unforswearing/gas-send-email
- Owner: unforswearing
- Created: 2020-09-20T03:58:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T05:58:51.000Z (over 1 year ago)
- Last Synced: 2024-05-01T13:27:22.780Z (8 months ago)
- Topics: google-apps-script, google-forms, google-sheets
- Language: JavaScript
- Homepage:
- Size: 1.17 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Apps Script - Send Email
> A better form submission notification message for [Google Apps Script](https://developers.google.com/apps-script/reference/) Form and Spreadsheet projects.
This project is aimed at users who use Google Spreadsheets to collect Google Form response data, and want more informative notifications when a new form is submitted. This project intends to be a replacement for the default [Google Sheet edit notifications](https://support.google.com/docs/answer/91588?hl=en&co=GENIE.Platform%3DDesktop) by providing the full form submission in the email notification.
This script has been used across several long-term Google Apps Script projects and is fairly robust, however please review the docs and submit an issue if you encounter any bugs.
## Documentation
[View the documentation here](/docs/README.md)
## Installation
Install via `npm`:
```shell-session
npm install google-apps-script-send-email
```## Usage
Add your project info to [the configuration file](/config.js)
```javascript
// Sample configuration
const config = {
admin: "[email protected]",
formName: "Site Survey",
recipient: [
"[email protected]",
"[email protected]
]
emailFooter: "
This is an automated message, do not reply",
sheetId: "1234567890abcdef,
sheetNameFilter: " Responses",
subjectFilter: "New Submission: ",
sheetInfo: {
firstCol: "A",
lastCol: "R",
// the lastRow parameter does not need to be edited
lastRow: activeSpreadsheet.getLastRow(),
},
}
```Run the `sendEmail` function as an [installable trigger](https://developers.google.com/apps-script/guides/triggers/installable#google_apps_triggers). You may also `import` [sendEmail.js](/sendEmail.js) into another file in your Google Apps Script project.