title: I when to send email from Thunkable using the (https://script.google.com) MailApp.sendEmail(recipient,subject,body);
body: <p>I want to send an email from Thunkable using <a href="https://script.google.com" rel="nofollow noreferrer">https://script.google.com</a> <code>MailApp.sendEmail(recipient,subject,body);</code><br />
  the script code is:</p>
  <pre><code>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);
  }
  </code></pre>
  <p>But I receive the status code 401 and the email is not sent :
  <a href="https://i.stack.imgur.com/YeNNh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YeNNh.png" alt="enter image description here" /></a></p>
  <p>I want from inside thunkable use the <a href="https://script.google.com" rel="nofollow noreferrer">https://script.google.com</a> <code>MailApp.sendEmail(recipient,subject,body);</code> but I receive the status code 401</p>