Skip to content

Instantly share code, notes, and snippets.

@brunosan
Created May 18, 2012 19:20
Show Gist options
  • Save brunosan/2727146 to your computer and use it in GitHub Desktop.
Save brunosan/2727146 to your computer and use it in GitHub Desktop.
Send Email
var message = "<HTML><BODY>"
+ '<img align="middle" width="150px" src="http://gain.org/images/gainlogo.png"><br>'
+ "<br><p align='left'> April "+Utilities.formatDate(new Date(), 'GMT', 'd, yyyy')+"</p>"
+ "<br><p>Dear " + row.prefix + " " + row.lastName + ", <p> "
+ '<P>It is an honor to invite you to ...REST OF EMAIL'
+ ' Please RSVP at your <a href="'
+ construct_URL(row)
+ '"> personalized form</a>. </p>'
+ '<P> REST OF EMAIL'
+ "</HTML></BODY>";
MailApp.sendEmail(row.email,
"RSVP Requested: --SUBJECT--",
"",
{
htmlBody: message,
bcc: MANAGER_EMAIL
});
row.state = EMAIL_SENT;
sheet.getRange(row.id+2, COLUMN_STATE).setValue(EMAIL_SENT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment