我有下面的代码,它将内联图像添加到从谷歌表格发送的电子邮件中。我正在为内联图像添加超链接。任何有关如何实现这一目标的指导将不胜感激!
var pwcURL2 = DriveApp.getFileById("1C56M6DeZCm9IK5K26Z_ZYNLMb8rdqB4a").getBlob();
var pwcblob = UrlFetchApp
.fetch(pwcURL)
.getBlob()
.setName(pwcblob)
//Some more lines of code in the middle which I have skipped as they are not relevant to the question being asked here
bodypwc = "<img src='cid:pwc' style='width:24px; height:16px;'/>" + bodypwc;
MailApp.sendEmail({
to: currentEmail,
subject: subjectLine,
body: messageBody,
attachments: [liabilityWaiver1,liabilityWaiver2],
htmlBody: messageBody+"<BR/><BR/>"+"<img src=\"cid:sampleImage\">",
inlineImages: {sampleImage: pwcURL2}
});