Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何格式化通过谷歌应用程序脚本发送的Gmail电子邮件中的文本(粗体、斜体)?_Google Apps Script_Gmail - Fatal编程技术网

Google apps script 如何格式化通过谷歌应用程序脚本发送的Gmail电子邮件中的文本(粗体、斜体)?

Google apps script 如何格式化通过谷歌应用程序脚本发送的Gmail电子邮件中的文本(粗体、斜体)?,google-apps-script,gmail,Google Apps Script,Gmail,我刚刚开始使用谷歌应用程序脚本。我用它从谷歌应用电子表格发送电子邮件。在电子邮件中,我想把一些部分加粗和/或斜体,但我不知道怎么做 PS:这就是我连接字符串的方式,如果它感兴趣的话: var message = "Hi " + fname + ",\n\nJust letting you know that we have your job targeted for " + targetDate+ ".\n\nPlease let w know

我刚刚开始使用谷歌应用程序脚本。我用它从谷歌应用电子表格发送电子邮件。在电子邮件中,我想把一些部分加粗和/或斜体,但我不知道怎么做

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

您必须使用html正文选项,请参阅文档,a将返回许多实际示例