How do I include an "Add to Calendar" button or link in an email template?

  • 1
  • Question
  • Updated 3 years ago
How do I include an "Add to Calendar" button or link in an email template?
Photo of Philip MacQuitty

Philip MacQuitty

  • 4 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Jesse Miller

Jesse Miller, Alum

  • 20 Posts
  • 1 Reply Like

Add the following code to the email templates you wish. For example the email template learners receive when registering for an Instructor Led event:

<code><a href="${baseUrl}/admin/course_event/ics/${courseEvent.id}.html" target="_top" alt="Add event to your calendar">Add event to your calendar</a

If you would like to use an image try the code below, where "/static/images/calendar-icon-plus.png" is a calendar image you have uploaded to the static files directory.

<code><a href="${baseUrl}/admin/course_event/ics/${courseEvent.id}.html" target="_top" alt="Add event to your calendar"><img src="${baseUrl}/static/images/calendar-icon-plus.png" alt="Add event to calendar"></a
(Edited)