spatie / calendar-links

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

Cover by docs a case how to send "add event links" via email #50

Closed alies-dev closed 5 years ago

alies-dev commented 5 years ago

Ref: https://github.com/spatie/calendar-links/issues/44#issuecomment-455533351

orphanedrecord commented 5 years ago

I am curious to see your approach, as I have a use case for this myself, especially handling ics data.

alies-dev commented 5 years ago

@orphanedrecord

I know 2 options:

  1. use only google, yahoo and outlooks links + attach .ics as file
  2. use links to YOUR domain that will return [redirect] response you need

Could you please share your approach?

orphanedrecord commented 5 years ago

Those are the methods that come to mind for me as well.

I was leaning toward option two, as this could allow changes to the event ics data after an email is sent (which should be rare). For example, if we discovered a typo or clarified something in the description, we could not fix this for an attachment that has already been sent!

Plus the idea of not including an email attachment just feels cleaner. We could include a nice CTA button link in the email to download the .ics by hitting a script on our website. My inclination is the latter may have a higher conversation rate.

Thank you for your work on this project!

spatie-bot commented 5 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.

ziming commented 1 year ago

Hi could anyone share some source code examples?