Complete the code to get the email address from cell A2.
var email = sheet.getRange([1]).getValue();The email address is in cell A2, so we use "A2" to get its value.
Complete the code to send an email with subject "Hello".
MailApp.sendEmail([1], "Hello", "This is a test email.");
The first argument of sendEmail is the recipient's email address, stored in the variable email.
Fix the error in this code to get the message from cell B2.
var message = sheet.getRange([1]).getValue();Cell addresses must be strings with quotes, so use "B2".
Fill both blanks to create a dictionary with email as key and message as value.
var data = { [1]: [2] };Use the variable email as key and message as value without quotes.
Fill all three blanks to send an email with subject and message from the sheet.
MailApp.sendEmail([1], [2], [3]);
The first argument is the recipient email, second is the subject string, third is the message variable.
