HI
I have a problem with function var and i don't know what's wrong:
I know that i have to fill the blanks with correct data for spreadsheet etc, but that's not the issue, whatever i put there function var is not working, everytime it get's underlined red and i don't know what to do. Please help me :D!
function sendEmail(// Fetch the email address
var emailRange = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getRange("B2");
var emailAddress = emailRange.getValues();
// Send Alert Email.
var message = "This is your Alert email!"; // Second column
var subject = "Your Google Spreadsheet Alert";
MailApp.sendEmail(emailAddress, subject, message);) {
}