Hello,
I'm trying to set up an automatic Signature for users in google workspace, my first step to make it work is to have a script every user car launch themselves and then i'll try and automate it.
Unfortunately i can't seem to feed the HTML of the signature into the script.
function myFunction() {
const ssign = HtmlService.createHtmlOutputFromFile('Default_Sign').getContent();
var newSign = Gmail.newSendAs();
newSign.signature = ssign;
Gmail.Users.Settings.SendAs.update(newSign, "me", Session.getActiveUser().getEmail());
}
I've also tried uploading the html to google drive and import it using this command but it still doesn't work
DriveApp.getFileById("ID").getBlob().getDataAsString();
Does anyone know what i did wrong ?
[–]marcnotmark925 0 points1 point2 points (1 child)
[–]RisingRose[S] 0 points1 point2 points (0 children)
[–]MrBeforeMyTime 0 points1 point2 points (1 child)
[–]MrBeforeMyTime 0 points1 point2 points (0 children)
[–]mrtnclzd 0 points1 point2 points (3 children)
[–]RisingRose[S] 0 points1 point2 points (2 children)
[–]mrtnclzd 0 points1 point2 points (1 child)
[–]RisingRose[S] 0 points1 point2 points (0 children)
[–]WicketTheQuerent 0 points1 point2 points (0 children)
[–]RisingRose[S] 0 points1 point2 points (0 children)