Hi have a simple script that sends an email from a spreadsheet I need to allow the other users of the sheet to call the script but I want the script to be ran as me (the owner) so that the email is sent from my account. I've looked at some similar questions and answers but nothing seems to work.
I've got a button on my sheet calling the doGet function with the following code.
function doGet(e){
UrlFetchApp.fetch('https://script.google.com/a/----.org/macros/s/AKfycbxT------------------------------FK5GbrkI/exec').getResponseCode();
}
If I go to the URL from a browser tab script runs fine but I can't get it to work from clicking the button on my spreadsheet
Code.gs
. – Parag Jadhav