I have a Spreadsheet connected to a Google Form that gets email addresses from people who submit the form. I already have a menu item that gets the email address from the cell, composes an email, and sends it.
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Send E-mail')
.addItem('Selected E-mail', 'selected_email')
.addToUi();
}
function selected_email() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var email = sheet.getActiveCell().getValue();
GmailApp.sendEmail(email, "Your Suggestion", "");
}
However, I would like to be able to edit the message as I choose without having to change the script.
Is there a way to create a popup "Compose Message" box like the one in Gmail using Google Apps Script?
Thank you in advance.