メール送信
let Email = "メール送信先 to";
let Subject = "件名";
let Body = "本文";
let Option = {
bcc: "メール送信先 bcc",
cc: "メール送信先 cc",
}
GmailApp.sendEmail(Email, Subject, Body,Option);
メール下書き作成
let Email = "メール送信先 to";
let Subject = "件名";
let Body = "本文";
let Option = {
bcc: "メール送信先 bcc",
cc: "メール送信先 cc",
//本文にURL(リンク)を入れる
htmlBody: body.replaceAll('\n', '
') + 'URL'
}
GmailApp.createDraft(Email, Subject, Body,Option);