使用 Google Apps 脚本创建草稿邮件 [英] Create draft mail using Google apps script
本文介绍了使用 Google Apps 脚本创建草稿邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以使用 Google Apps 脚本创建草稿邮件.如果是的话,怎么可能?
I want to know if it's possible to create draft mail using Google Apps script. And if yes, how is it possible ?
问候,塞巴斯蒂安
推荐答案
Google 在 2017 年 9 月增加了对生成草稿的支持.来自 文档:
Google added support for generating drafts in September 2017. From the documentation:
// The code below creates a draft email with the current date and time.
var now = new Date();
GmailApp.createDraft("mike@example.com", "current time", "The time is: " + now.toString());
这篇关于使用 Google Apps 脚本创建草稿邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文