本文介绍了Google Apps脚本:在从Google电子表格发送之前先预览电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在从Google电子表格发送邮件之前,是否仍然可以预览电子邮件.我研究了很多发送电子邮件的示例,但找不到发送前预览的任何解决方案.

Is there anyway to preview the email before send from google spreadsheet. I study alot of example of sending the email but I could not found any solution of previewing before sending out.

推荐答案

要在发送前显示预览,可以使用 Ui.prompt() Ui.showModalDialog()提供一个弹出窗口,您将在其中填充电子邮件的预览.

To show a preview before sending, you can use Ui.prompt() or Ui.showModalDialog() to provide a pop-up, which you'll fill with the preview of your email.

如果您为电子邮件建立了HTML正文,则可以使用HtmlService或 UiService.html().

If you've built an html body for your email, you can put it into the preview using either HtmlService or UiService.html().

这篇关于Google Apps脚本:在从Google电子表格发送之前先预览电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 17:25