可以,然后呢。我编写了一个简单的脚本,可以向在谷歌文档上填写我的表单的任何人发送电子邮件。问题是,我无法让它运行,我所拥有的只是让用户发送电子邮件并向他们发送电子邮件的勇气。我无法启动脚本。我已经四处寻找,试图找到一种在表单完成后自动启动脚本的方法。
Tl; dr尝试发送确认表格已完成的收据。
这是脚本:
function hallpassreceipt() {
// Get the email address of the active user - that's you.
var email = Session.getActiveUser().getEmail();
// Get the name of the document to use as an email subject line.
var subject = 'Hall Pass';
// Append a new string to the "url" variable to use as an email body.
var body = 'This is a hall pass .';
// Send yourself an email with a link to the document.
GmailApp.sendEmail(email, subject, body); }