Reputation: 1
I created a script which create an event in my calendar automatically and send an invitation to specified addresses. That works well when I specify address different from the email linked to my calendar.
But in my case I have 2 calendars so I would like to : - Create the event in the calendar A - Send an invitation by email, which creates at the same time the event (but not validated) in calendar B. - This way I can choose in the calendar B to decline or not the event
To do that I just have to send the invitation to my mail address ([email protected]). That almost works : - The event is shown in calendar B and I can choose to decline it. - BUT I don't receive any email for the invitation. It seems that send the invitation from a an address to the same address doesn't work.
Do you know why ? And is there a way to force the sent ?
var event = cal.createEvent(titre, DateDebut, DateFin, {description : description, guests : "[email protected]", sendInvites: true});
event.setGuestsCanModify(true);
Upvotes: 0
Views: 2199
Reputation: 56
If the email is being sent by the calendar, the other way to force an email would be using the class MailApp
which allows you to send emails. This option allows you to make a custom email and invitation, and If I'm remembering correct allows you to send invites to non-google accounts.
Upvotes: 0