【问题标题】:Formatting the automated email send from google spreadsheet格式化从谷歌电子表格发送的自动电子邮件
【发布时间】:2013-08-18 17:30:20
【问题描述】:

我浏览了整个网络,但找不到格式化从 Google 电子表格应用程序发送的电子邮件的方法。我曾尝试使用内联 html 元素,但 API 正在转义它们并将它们作为电子邮件中的纯文本发送。有谁知道如何格式化文本?

【问题讨论】:

标签: google-apps-script google-sheets google-spreadsheet-api


【解决方案1】:

尝试使用以下代码:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-12
    • 1970-01-01
    相关资源
    最近更新 更多