Created
May 1, 2019 14:15
-
-
Save nidhinkumar06/4d842c495019280766b6b0faf8b3dacb to your computer and use it in GitHub Desktop.
Google-Code-Editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @OnlyCurrentDoc */ | |
function sendMap() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var address = sheet.getRange('A1').getValue(); | |
var map = Maps.newStaticMap().addMarker(address); | |
GmailApp.sendEmail('friend@example.com', 'Map', 'See below.', {attachments:[map]}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment