Send Mail Status 401

Hello
i tried to use this script from Ct Tricks

https://cttricks.com/2021/04/14/gmail-app-in-thunkable-x/

but fails to send any mail, returning the code 401, and not 200 as described in the guide
I have granted permissions to the google account for sending emails

am I doing something wrong?


1 Like

When you deployed the Google Apps Script, did you choose the type as Web app and the access to Anyone?

image

You have to choose this option to work from the Web API.

I had also done this test.
I have done everything again and now by changing this parameter, it works !!!
can e-mails other than Gmail also be used?
is it possible to change the sending email?

1 Like