How to send or attach invite links with emails

Created on 16 June 2024, 7 months ago
Updated 5 July 2024, 6 months ago

Problem/motivation

I'm trying to send the links to add to calendar through emails, so that the recipients' calendar clients could automatically show the event.

I set up easy_email module and tried to send the copy-pasted HTML of the Add to calendar links, but only the Google Calendar works. How to provide a link for Outlook and iCal that will actually download the .ics file? Adding target="_blank" wasn't enough.

💬 Support request
Status

Active

Version

1.1

Component

Documentation

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • 🇺🇸United States mark_fullmer Tucson

    Thanks for asking about this! A bit of research confirms my impression that a direct hyperlink to an ICS file is not commonly supported. Rather, the prevailing way to share ICS files via email is to attach them to the email.

    For example, both https://support.microsoft.com/en-us/office/create-an-add-to-calendar-lin... and https://answers.laserfiche.com/questions/119723/How-do-I-attach-a-direct... suggest exporting the file and then either attaching it to the email or storing the file in a cloud service like Google Drive and linking to that.

    That being said, I think it's certainly theoretically possible that this module _could_ provide the equivalent of a direct link to the ICS file. In order to support this, the business logic would need to be changed so that the hyperlink presented to users is not the data of the ICS itself, but rather, a relative link to a new Drupal Controller route, such as /events/ical/[UUID of event].

    As a maintainer, I'm not opposed to changing the business logic along the lines outlined above, but I'd like to get more confirmation from other maintainers and the community that this seems like a valuable and standards-compliant thing to do.

Production build 0.71.5 2024