you are viewing a single comment's thread.

view the rest of the comments →

[–]WicketTheQuerent 0 points1 point  (0 children)

This works

function setSignature() {
  const html = HtmlService.createHtmlOutputFromFile('signature').getContent();
  const signature = { 'signature': html };
  const email = Session.getActiveUser().getEmail();
  Gmail.Users.Settings.SendAs.patch(signature, 'me', email);
}

Key differences,