【问题标题】:How to format text (bold, italics) in a Gmail email sent via Google Apps Script?如何格式化通过 Google Apps 脚本发送的 Gmail 电子邮件中的文本(粗体、斜体)?
【发布时间】:2014-02-15 07:35:20
【问题描述】:

我刚刚开始使用 Google Apps 脚本。我正在使用它从 Google Apps 电子表格发送电子邮件。在电子邮件中,我希望将某些部分加粗和/或斜体,但我不知道该怎么做。

PS:如果感兴趣的话,这就是我连接字符串的方式:

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";

【问题讨论】:

    标签: google-apps-script gmail


    【解决方案1】:

    您必须使用 html 正文选项,请参阅 doc heresearch on this forum 将返回很多实际示例...

    【讨论】:

      猜你喜欢
      • 2020-12-15
      • 1970-01-01
      • 2013-08-15
      • 2014-09-25
      • 2018-02-05
      • 2018-02-03
      • 1970-01-01
      • 1970-01-01
      • 2022-08-20
      相关资源
      最近更新 更多