我想在Google的示例中使用变量,但标准替换不起作用。诀窍是什么? https://developers.google.com/apps-script/reference/mail/mail-app#sendEmail(Object)
(我在使用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
}
});
}