Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google Apps Script
function mail_send() {
var sheet = SpreadsheetApp.getActiveSheet();
var to_address = sheet.getRange(1,1).getValue();
var mail_subject = sheet.getRange(2,1).getValue();
var mail_body = sheet.getRange(3,1).getValue();
MailApp.sendEmail(to_address,mail_subject,mail_body);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.