Try running the function manually and when authorization pop up comes, approve the scopes it requests. You may not have added the correct scope in your manifest. There are several email related ones.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/e7deb740-3244-4830-b6ba-6a466189cf7fn%40googlegroups.com.