-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCode.gs
More file actions
21 lines (18 loc) · 681 Bytes
/
Copy pathCode.gs
File metadata and controls
21 lines (18 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Call the 'flight.html' file and send an email to your gmail
function manuallyCreateTrips() {
var htmlBody = HtmlService.createHtmlOutputFromFile('flight').getContent();
MailApp.sendEmail({
to: Session.getActiveUser().getEmail(),
subject: 'Flight confirmation - Iceland to America' + new Date(),
htmlBody: htmlBody,
});
}
// Call the 'hotel.html' file and send an email to your gmail
function manuallyCreateTrips() {
var htmlBody = HtmlService.createHtmlOutputFromFile('hotel').getContent();
MailApp.sendEmail({
to: Session.getActiveUser().getEmail(),
subject: 'Hotel confirmation - Week in Iceland' + new Date(),
htmlBody: htmlBody,
});
}