How to format text (bold, italics) in a Gmail email sent via Google Apps Script?

扶醉桌前 提交于 2019-12-20 04:11:53

问题


I've just started using Google Apps script. I'm using it to send emails from a Google Apps spreadsheet. In the email I would like some parts made bold and/or italicised but I can't find out how to do it.

Thanks for any help...

PS This is how I'm concatenating strings shoud it be of interest:

var message = "Hi " + fname + ",\n\nJust letting you know that we have your job targeted for " + targetDate+ ".\n\nPlease let w know if that is unsuitable.\n\nThanks, Gregg";

回答1:


You have to use the html body option, see doc here, a search on this forum will return a lot of practical examples...



来源:https://stackoverflow.com/questions/21794764/how-to-format-text-bold-italics-in-a-gmail-email-sent-via-google-apps-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!