Skip to content

Instantly share code, notes, and snippets.

@jamesmurdza
Created December 15, 2023 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmurdza/addf30adbd65f7e28f6a855b75469be8 to your computer and use it in GitHub Desktop.
Save jamesmurdza/addf30adbd65f7e28f6a855b75469be8 to your computer and use it in GitHub Desktop.
Send an email from Google Sheets (Beginners Apps Script tutorial)
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