I'm trying to send a google slide as an attachment/image in my automated email using google appscripts but i can only send images. I change the slide info everyday so I need it to display the new info hence i dont want to keep changing the image everyday.
// This code fetches the Google and YouTube logos, inlines them in an email
// and sends the email
function inlineImage() {
var googleLogoUrl = "https://i.imgur.com/CWmA6Jv.png";
var youtubeLogoUrl =
"https://i.imgur.com/CWmA6Jv.png";
var googleLogoBlob = UrlFetchApp
.fetch(googleLogoUrl)
.getBlob()
.setName("Scratches Alert");
var youtubeLogoBlob = UrlFetchApp
.fetch(youtubeLogoUrl)
.getBlob()
.setName("Scratches Dashboard");
MailApp.sendEmail({
to: "test@testmail.com",
subject: "Scratches Awareness Program",
htmlBody: "<p>This is to inform about the progress of Scratch Awareness
Programme.<p> Engineers, supervisors & shift leaders are expected to
display and brief thier team on the latest update based on visual comm.
Everyone's involvement is highly appreciated. Please click on the given
link to access Scratches Alert and Dashboard:
https://www.youtube.com/watch?v=dQw4w9WgXcQ</p></p><p><img
src='cid:googleLogo' width='500' height='333'><img src='cid:youtubeLogo'
width='500' height='333'></p>",
inlineImages:
{
googleLogo: googleLogoBlob,
youtubeLogo: youtubeLogoBlob
}
});
}
This code send a text followed by 2 images side by side. I need it to send a text followed by 2 google slide side by side that will automatically update everytime i change anything on the google slide.
