简体   繁体   English

格式化从Google电子表格发送的自动电子邮件

[英]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. 我一直在网上浏览所有内容,但是找不到格式化Google电子表格应用程序发送的电子邮件的方法。 I have tried using inline html elements, but the API is escaping them and sending them as plain text in the email. 我尝试使用内联html元素,但API对其进行转义并将其作为纯文本发送到电子邮件中。 Does anyone have an idea how to format the text? 有谁知道如何格式化文本?

Try using the following code: 尝试使用以下代码:

...
var options = {
  htmlBody: '<b><i>TEST</i></b>'
};
MailApp.sendEmail('someone@domain.ext', 'TEST', 'TEST', options);
...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM