Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29758

Google Apps Script: Unable to send emails using createEvent()

$
0
0

I have the following code and attendees are not able to receive emails about the event. Though the event is reflecting in their calendar.

    var options = {  
     description: description,
     location: location,
     guests: email_address,
     sendInvites: true
   }
   var event = CalendarApp.getCalendarById(calendarId).createEvent(title,
                start_datetime, end_datetime,
                options);

I have added oauthScopes to appsscript.json as well.

"oauthScopes": [
   "https://www.googleapis.com/auth/calendar",
   "https://www.google.com/calendar/feeds"
 ]

It seems like an authorization issue but not sure how to solve this.


Viewing all articles
Browse latest Browse all 29758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>