knikolov
knikolov

Reputation: 1800

Formatting the automated email send from google spreadsheet

I have been looking all over the web and could not find a way to format the email sent from a Google spreadsheet application. I have tried using inline html elements, but the API is escaping them and sending them as plain text in the email. Does anyone have an idea how to format the text?

Upvotes: 0

Views: 2051

Answers (1)

wchiquito
wchiquito

Reputation: 16569

Try using the following code:

...
var options = {
  htmlBody: '<b><i>TEST</i></b>'
};
MailApp.sendEmail('[email protected]', 'TEST', 'TEST', options);
...

Upvotes: 1

Related Questions