I need to use photos from Google Photos into HTML templates.
I readed some answers here. In all answers are talking about use the URL of the image, but the principal issue for me is to take the URL of the image from Google Photos.
This is my code:
function sendToGroup() {
var htmlBody = HtmlService.createHtmlOutputFromFile('emailBody').getContent();
var mSubject="Lorem ipsum";
var mName='Me | me.com';
GmailApp.sendEmail(
'one-group@me.com',
mSubject,
'Lorem ipsum',
{
htmlBody: htmlBody,
name: mName
}
);
Logger.log('EMail OK');
}
Actually, into my HTML template i'm using images from Flickr. I can take easily the URL of these images and use it into the HTML without problem, for example, this works fine:
<div class="fluid-img" style="font-size:0pt; line-height:0pt; text-align:left"><a href="#" target="_blank"><img src="https://live.staticflickr.com/7916/45689248745_7268fc026d_z.jpg" border="0" width="650" alt="" /></a></div>
Recently i created one account into Google Workspace and i want to migrate all my photos from Flickr to Google Photos.
There is one way to use Google Photos for send HTML emails? I'm talking about send the images as part of the content of the email, not as attached files.