Created
December 15, 2023 19:56
-
-
Save jamesmurdza/addf30adbd65f7e28f6a855b75469be8 to your computer and use it in GitHub Desktop.
Send an email from Google Sheets (Beginners Apps Script tutorial)
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
function myFunction() { | |
let sheet = SpreadsheetApp.getActiveSheet(); | |
let address = sheet.getRange("A1").getValue(); | |
let subject = sheet.getRange("A2").getValue(); | |
let body = sheet.getRange("A3").getValue(); | |
MailApp.sendEmail(address, subject, body); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment