0

我想使用https://script.google.com MailApp.sendEmail(recipient,subject,body);
从 Thunkable 发送一封电子邮件, 脚本代码是:

function doPost(e) {
  // this function send the post to your email  
  var recipient = e.parameters.recipient;
      recipient = decodeURI(recipient);
  var subject = e.parameters.subject;
      subject = decodeURI(subject);
  var body = e.parameters.body;
      body = decodeURI(body);
 // GmailApp.sendEmail(recipient,subject,body);
 MailApp.sendEmail(recipient,subject,body);
}

但我收到状态码 401 并且未发送电子邮件: 在此处输入图像描述

我想从 thunkable 内部使用https://script.google.com MailApp.sendEmail(recipient,subject,body);但我收到状态码 401

4

0 回答 0