Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
task mail
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