Open a Spreadsheet and rename the Sheet to test001.
Use the next source code:
1 2 3 4 5 6 7 | function sendMap() { //var sheet = SpreadsheetApp.getActiveSheet(); var sheet = SpreadsheetApp.getActive().getSheetByName('test001') var address = sheet.getRange('A1').getValue(); var map = Maps.newStaticMap().addMarker(address); GmailApp.sendEmail('catafest@yahoo.com', 'Map', 'See below.', {attachments:[map]}); } |
This will send a mail to my email address with a map from the address in column A1.