Created
March 28, 2017 09:00
-
-
Save kir-sf/f25a73ced79ae77a2a5ca1ad4790e797 to your computer and use it in GitHub Desktop.
task mail
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
mailHtml=mailHtml+"<table><caption><h4> ЗАДАЧИ </h4></caption"; | |
var todayTasks=getTodayTasks(); | |
for (var i=0; i<todayTasks.length; i++) { | |
mailHtml=mailHtml+"<tr id='"+todayTasks[i].id+"'>"; | |
mailHtml=mailHtml+"<td>"+todayTasks[i].title+"</td>"; | |
mailHtml=mailHtml+"<td><button onclick='this.hidden=true'>Выполнено</a></td>"; | |
mailHtml=mailHtml+"<td><button>На завтра</button></td>"; | |
mailHtml=mailHtml+"<td><button>На следующую неделю</button></td>"; | |
mailHtml=mailHtml+"</tr>"; | |
} | |
mailHtml=mailHtml+"</table>"; | |
var mail={ | |
htmlBody: mailHtml, | |
to: addrTo, | |
subject: "План на неделю" | |
} | |
MailApp.sendEmail(mail); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment