var logoUrl = "https://my.site.com/path/to/logo.png" var logoBlob = UrlFetchApp.fetch(logoUrl).getBlob().setName("logo"); ... MailApp.sendEmail({ to: client.email, subject: "...", htmlBody: // html with reference to image like this: "<img src='cid:logo' width='107' height='160'/>" , inlineImages: { logo: logoBlob, } });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter