1

我想在 Google 的示例中使用变量,但标准替换不起作用。诀窍是什么? https://developers.google.com/apps-script/reference/mail/mail-app#sendEmail(对象)

(我在 Stackoverflow.com 代码块设置方面遇到问题,所以那里的建议也会有所帮助:在每行手动输入 4 个空格?真的吗?)

[下面:上面缺少代码,因为每行添加 4 个空格很痛苦]

to_01 = "email@example.com"
subject_01 = s.getRange('B2').getValues();

 MailApp.sendEmail({
 to: to_01, //<<<<<<<does not work
 subject: subject_01, //<<<<<<does not work
 htmlBody: "wind today Logo <br> <img src='cid:googleLogo'> images! <br>" +
           "and later YouTube Logo <img src='cid:youtubeLogo'>",
 inlineImages:
   {
     googleLogo: googleLogoBlob,
     youtubeLogo: youtubeLogoBlob
   }
});
}
4

0 回答 0