Answer the question
In order to leave comments, you need to log in
Google Sendmail problem can't formulate email?
There is a standard Google script for sending an email:
function sendEmails() {
var sheet = SpreadsheetApp.getActiveSheet();
var startRow = 2; // First row of data to process
var numRows = 2; // Number of rows to process
// Fetch the range of cells A2:B3
var dataRange = sheet.getRange(startRow, 1, numRows, 2)
// Fetch values for each row in the Range.
var data = dataRange.getValues();
for (i in data) {
var row = data[i];
var emailAddress = row[0]; // First column
var message = row[1]; // Second column
var subject = "Sending emails from a Spreadsheet";
MailApp.sendEmail(emailAddress, subject, message);
}
}
Answer the question
In order to leave comments, you need to log in
Good people help, I really need to know the solution to this problem!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question