3

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.

mx0
  • 6,445
  • 12
  • 49
  • 54
Zvi
  • 577
  • 6
  • 19
  • 1
    Have you tried "Add by URL" option in google calendar. – Stephen M Oct 16 '17 at 12:09
  • Hi @StephenM, do you mean add link to google.com/calendar... that add dynamic? I mean, add links specific for Google, Outlook etc.? – Zvi Oct 16 '17 at 13:33
  • Hi @StephenM, I succeed to add link that redirect to create new event in google, but still not in Outlook. How should I do it for outlook? – Zvi Oct 16 '17 at 20:46
  • In outlook there is an option "Add Calendar" , from that option you can add via "From internet" option. – Stephen M Oct 17 '17 at 04:51
  • @StephenM, I know. But I would like to add link to email template that will do this Add to calendar. Is there any way to add to calendar from internet by link in outlook? – Zvi Oct 17 '17 at 04:56
  • You can create a link for outlook web/owa/live, docs are here: https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/master/services/outlook-web.md – Alies Jan 17 '19 at 09:42
  • OR you can attach .ics file to the email (but it's not very dynamic, right?). Unfortunately email clients don't support data-links (like `data:text/calendar;charset=utf8,BEGIN:VCALENDAR%0d%0aVERSION:2.0%0d%0aBEGIN:VEVENT%0d%9%0d%0aSUMMARY:UXinsight 2019%0d%0aDTSTART;TZID=Europe/Amsterdam:20190403T090000%0d%0aDTEND;TZID=Europe/Minsk:20190404T190000%0d%0aDESCRIPTION:UXinsight%0d%0aEND:VEVENT%0d%0aEND:VCALENDAR`) – Alies Jan 17 '19 at 09:48

0 Answers0