Created
May 18, 2012 19:20
-
-
Save brunosan/2727146 to your computer and use it in GitHub Desktop.
Send Email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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