Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Email Google工作表通知:如果工作表已编辑,则通过电子邮件从特定单元格发送文本_Email_Notifications_Google Sheets - Fatal编程技术网

Email Google工作表通知:如果工作表已编辑,则通过电子邮件从特定单元格发送文本

Email Google工作表通知:如果工作表已编辑,则通过电子邮件从特定单元格发送文本,email,notifications,google-sheets,Email,Notifications,Google Sheets,更新引用特定单元格的工作表时,是否可以发送通知 我想引用的单元格,比如C15,是静态的,包含文本 因此,当提交表格/更新电子表格时,会收到一封电子邮件,上面写着“VA电子表格更新:您的附加值显著低于/高于本月的平均值。”从单元格C15中获取此文本 谢谢 延迟此代码应负责通过电子邮件向您发送从表单计算的详细信息 /* Paste the below code in your spreadSheets Tools > ScriptEditor Then setup trigger for on

更新引用特定单元格的工作表时,是否可以发送通知

我想引用的单元格,比如C15,是静态的,包含文本

因此,当提交表格/更新电子表格时,会收到一封电子邮件,上面写着“VA电子表格更新:您的附加值显著低于/高于本月的平均值。”从单元格C15中获取此文本

谢谢


延迟

此代码应负责通过电子邮件向您发送从表单计算的详细信息

/* Paste the below code in your spreadSheets Tools > ScriptEditor
Then setup trigger for on onFormSubmit in ScriptEditor
Resources > Current Project Triggers > Add New Triggers > from Spreadsheet > on Form Submit

Remember to change the "Your email ID here" to email ID you need the mail to send the email 
*/
    function emailMileage() {
      var ss = SpreadsheetApp.getActive();
      var sheet = ss.getSheetByName("Update");

    var userEmail = "your Email ID here"
    var sendername = "Mileage App"
    var subject = "Your Mileage:";
      if(sheet != null){
       // This combines the values from three cells in update sheet with a space  
       var message = sheet.getRange(1,1,3,1).getValues().join(" ");

      } else {
        var message = "Unable to find update Sheet!" 
      }

      MailApp.sendEmail({
        to: userEmail,
        name: sendername,
        subject: subject,
        htmlBody: message
      });



    }

需要澄清的是:1)引用特定单元格的工作表更新是什么意思?表单中是否有要求引用单元格的字段?2) 您引用的单元格是否会更改每次提交3)通知应发送给提交表单的人还是其他特定的人?链接到您的电子表格或示例会很有用。当我提交谷歌表单时,我希望第三页的内容“更新”以电子邮件的形式发送出去(如果可能的话,以文本的形式发送;如果不能这样做,则以电子表格的链接发送)。2.单元格位置是静态的,但提交表单时内容将更新。3.我希望电子邮件只发送到我的电子邮件地址。但如果有必要的话,我也是唯一提交表格的人。希望能澄清问题!明亮的只是试了一下;真是太棒了!我现在会试着在ScriptEditor周围转一转,看看我是否能在其他项目上做到这一点。谢谢,贾甘纳森。