spatie / calendar-links

Generate add to calendar links for Google, iCal and other calendar systems
https://spatie.be/opensource
MIT License
908 stars 147 forks source link

$link->ics() not working correctly on Outlook mails #110

Closed chavab1 closed 3 years ago

chavab1 commented 3 years ago

Context

  1. PHP Version: 7.2
  2. Package version: 1.4.2

Describe the Bug

I followed the instructions and the links get generated correctly. I'm including the links in emails. When the email is received in Microsoft Outlook 2016 all of the links work as expected. However, when I try to open the link generated by $link->ics() I am prompted to dowload an app from the Microsoft Store. When I click on the link on a different email client, like Gmail, it opens correctly.

Expected Behavior

I want the link to open the Calendar prompt like it does when I click on the link from an email opened in Gmail or Yahoo mail

alies-dev commented 3 years ago

@chavab1 For ICS generator we use data:text/calendar link type. You can do some experiments by extending Ics generator and overriding \Spatie\CalendarLinks\Generators\Ics::buildLink():

$link->formatWith(new \Your\Custom\IcsGenerator());

and then share results with the community 💪 .

The problem was originally raised here: https://github.com/spatie/calendar-links/issues/17

Materials

spatie-bot commented 3 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.