@מוח-קודח הקוד חסום בנטפרי, וצריך להוסיף הרשאות בAppscript.json
{
"timeZone": "Asia/Jerusalem",
"dependencies": {
},
"exceptionLogging": "STACKDRIVER",
"runtimeVersion": "V8",
"oauthScopes": [
"https://www.googleapis.com/auth/script.send_mail",
"https://www.googleapis.com/auth/gmail.modify",
"https://www.googleapis.com/auth/script.external_request"
]
}
אני אשמח אם תביא קישור לסקריפט שפתוח ויעבוד בנטפרי