MailApp.sendEmail(
However, I just realize that you just need to use braces to use other advance parameters. For example to add cc, you can do the following.
{
var toList = "strovek@gmail.com";
var toList = "strovek@gmail.com";
var ccList = "strovek2@outlook.com"
var subj = "Testing sendmail api";
var bodyContent = "If you receive this mail, then the test is successful"
+ "<br><br>This is a second line";
MailApp.sendEmail({to: toList, cc: ccList, subject: subj, htmlBody: bodyContent});
No comments:
Post a Comment