This may help also. This works for me:
function inlineImage() {
var youtubeLogoUrl =
var googleLogoBlob = UrlFetchApp
.fetch(googleLogoUrl)
.getBlob()
.setName("googleLogoBlob");
var youtubeLogoBlob = UrlFetchApp
.fetch(youtubeLogoUrl)
.getBlob()
.setName("youtubeLogoBlob");
MailApp.sendEmail({
to: " ", // insert email address
subject: "Logos",
htmlBody: `<table><tr>
<td><img height="24px" width="74px" src='cid:googleLogo'></td>
<td><img height="42px" width="98px" src='cid:youtubeLogo'></td>
</tr>
</table>`,
inlineImages:
{
googleLogo: googleLogoBlob,
youtubeLogo: youtubeLogoBlob
}
});
}