为什么不是谷歌应用程序脚本发送邀请
Google Apps脚本在下面的电子表格中运行,除发送邀请外,一切正常 . 使用 sendInvites:true
将在日历中创建事件,并添加访客但不会发送电子邮件 . 我没有使用 var advancedArgs
并尝试相同的结果 .
if (eventImported != EVENT_IMPORTED && title != "") { // Prevents importing duplicates
var cal = CalendarApp.openByName('calendarname');
var advancedArgs = {description: details, location: cust, guests:guestlist, sendInvites:true};
cal.createEvent("10% Complete-->"+title, startDate, endDate, {description: details, location: cust, guests:guestlist, sendInvites:true});
sheet.getRange(startcolumn + i, 9).setValue(EVENT_IMPORTED);
2 years ago
错误必须在其他地方,我在这个简化版本中测试了您的代码,我按预期收到了邀请 . (我在很多脚本中经常使用这个选项而没有任何问题)
你能告诉我你如何得到你的客人名单吗?它是documentation中指定的逗号分隔的电子邮件列表吗?