I send email to some user, and I would like to add link / button 'Add to calendar', that will add the ICS event automatically to the recipient calendar (google, outlook etc.).
Currently, I am creating ICS calendar event by the gem and send to mail by defined the content_type: 'text/calendar'
and body: ical.to_ical
.
I would like to send the email without defined the above and add link / button 'Add to my calendar' that will be added to the recipient calendar (google, outlook etc.) dynamically.
Can someone have an idea how to do it?
UPDATE: I have added link to google calendar that creates dynamic URL for creating google calendar event (https://calendar.google.com/calendar/render?action=TEMPLATE..),
But I still don't know how to build this link for outlook that will open create new event in outlook.