I\'ve been using OnEdit
for some time and its been working great - however just now ive came accross a problem - basically when column 6 (f) is edited I want it
The onEdit()
trigger is a so called "simple trigger" that has a limited field of action.
Since it runs automatically and silently under the authority of the active user it can't do anything that requires authorization, for example it can't send emails !
The solution is simple : change your function name to something else (myOnEdit for example) and set an installable onEdit trigger to run that function.(menu ressource/current script trigger/create new trigger in the script editor.)
This time it will be executed as you (you'll be sending the emails) when anyone edits the spreadsheet.
Documentation on that subject is available here.