function test_Send_Email_With_Styling() {
var html = '<div style="position:fixed;top:40px;left:60px;background-color: red;opacity:0.5">\
Watermark Here\
</div>';
html = html + '<div>Line One</div>\
<div>Line Two</div>\
<div>Line 3</div>\
<div>Line 4</div>\
<div>Line 5</div>\
<div>Line 6</div>\
<div>Line 7</div>\
<div>Line 8</div>\
<div>Line 9</div>';
MailApp.sendEmail({
to: "exa...@gmail.com",
subject: "Test Watermark",
htmlBody: html
});
}
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/94d0b2b6-6b0b-4b43-bb93-ee8bc0570808%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/194178ef-318c-47c6-98c6-0ed41c7396b7%40googlegroups.com.
background-image,
background-repeat: no-repeat;background-position: center;opacity:0.5 inline attributes. The image use is a publically available YouTube logo that is used in the MailApp example of the Apps Script documentation.
function Send_Email_With_Watermark() {
var tagOne = '<div style="background-image: url(' +
"'https://developers.google.com/youtube/images/YouTube_logo_standard_white.png'" +
');background-repeat: no-repeat;background-position: center;opacity:0.5">';
var tagEnd = '</div>';
var content = '<div>Line One</div>\
<div>Line Two</div>\
<div>Line 3</div>\
<div>Line 4</div>\
<div>Line 5 55555555555555555555555555555555555555555555555555555555555555555555555</div>\
<div>Line 6</div>\
<div>Line 7</div>\
<div>Line 8</div>\
<div>Line 9</div>'
;
var html = tagOne + content + tagEnd;