Send Mail Status 401

i tried to use this script from Ct Tricks

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?


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