Reputation: 107
i am creating Add To Calendar links for Google, Outlook, Yahoo and Apple. i have created all links except Apple. i want to create a link for apple devices that save the event in apple calendar. my google calendar link that i created is https://calendar.google.com/calendar/r/eventedit?text=Appointment+Confirmation&dates=20181109T083000Z/20181113T090000Z&details=Vein+Clinics+of+Alexandria+Appointment&location=4904+Seminary+Road+Suite+130+Alexandria,+VA+22311" i want to create such link for Apple. Can i get some help please. i am using windows and also testing it on iphone devices.
Upvotes: 8
Views: 20303
Reputation: 1
For outlook you can use this pattern https://outlook.office365.com/calendar/deeplink/compose?body=Random%20description&enddt=2023-10-12T09%3A45%3A00%2B00%3A00&location=here&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=2023-10-11T09%3A45%3A00%2B00%3A00&subject=Random%20title
For desktop deeplink
should be replaced to action
Upvotes: 0
Reputation: 111
const str = Buffer.from(decodeURIComponent(ics(calendarConfig).toString().split('charse=utf8,')[1])).toString('base64');
// attach this str as an attachment into your email
Upvotes: 1
Reputation: 552
Only Google Calendar links look like that. For Apple and everything else you should create an .ics file which is an event file. You can create it an .ics file here: https://apps.marudot.com/ical/
Litmus also has a useful article on how to create Add-to-Calendar buttons that I just followed last week and worked for me with some minor tweaking to work on my email template.
https://litmus.com/blog/how-to-create-an-add-to-calendar-link-for-your-emails .
Upvotes: 6