用于根据等于当前日期的单元格值发送电子邮件的脚本

时间:2018-12-03 20:30:19

标签: email google-apps-script google-sheets triggers

当一个单元格中的公式解决方案等于另一个单元格中的今天的日期时,我一直在尝试修改以前用来发送电子邮件的旧代码,然后再发送电子邮件。

这是我的代码:

RedisClient redisClient = RedisClient.create("redis://password@localhost:6379/0");
StatefulRedisConnection<String, String> connection = redisClient.connect();
RedisCommands<String, String> syncCommands = connection.sync();
syncCommands.multi();
syncCommands.sadd("topics", "value1", "value2", "value3"); // Puts topics in the set
syncCommands.set("posts", "serialized post"); // Puts serialized post
syncCommands.exec();

编辑:对不起,我忘了陈述出什么问题了。每次尝试触发此脚本(基于时间)时,都会收到一条错误消息,告诉我第3行(按名称获取工作表)未定义。

0 个答案:

没有答案