How to Create Calendar Events for Google, Outlook, Apple, and Thunderbird Calendars

4 min read

Adding events directly to a user’s calendar increases engagement, reduces no-shows, and improves scheduling efficiency. This guide explains how to create event links or downloadable files compatible with Google Calendar, Outlook Online, Outlook Desktop, Apple Calendar, and Thunderbird.

All examples below include code snippets that you can copy, customise, and implement immediately.

Google Calendar Entry

Google Calendar supports direct event creation via a specially structured URL. You can create a calendar link that, when clicked, prompts the user to add an event to their own Google Calendar.

Use this HTML code:

<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&text=Meeting&dates=20241112T100000Z/20241112T110000Z&details=Meeting%20Details&location=Online&sf=true&output=xml">Add to Google Calendar</a>

Replace each parameter accordingly:

  • text: Title of the event (e.g. Meeting)
  • dates: Start and end in UTC format (YYYYMMDDTHHMMSSZ)

    • Example: 20241112T100000Z/20241112T110000Z
  • details: Event description (Meeting%20Details)
  • location: Where the event will take place (e.g. Online)
  • sf=true and output=xml: These optional flags help format the output for better compatibility

This method does not require hosting any files and works well for mobile and desktop users.

Outlook Online Calendar Entry

Outlook Online also allows calendar entries via URL-based event creation. Use the following HTML code to generate a clickable link:

<a href="https://outlook.live.com/calendar/0/deeplink/compose?path=/calendar/action/compose&startdt=2024-11-12T10:00:00&enddt=2024-11-12T11:00:00&subject=Meeting&body=Meeting%20Details&location=Online">Add to Outlook Calendar</a>

Edit these parameters to suit your event:

  • startdt: Start date and time (YYYY-MM-DDTHH:MM:SS)
  • enddt: End date and time
  • subject: The event title
  • body: Additional details or agenda
  • location: Where the event is happening

This method is ideal for linking from newsletters, landing pages, and confirmation emails.

Apple Calendar and Outlook Desktop Calendar Entry

For platforms like Apple Calendar, Outlook Desktop, and Thunderbird, you must use an .ics file. This is a universal calendar file format supported by most applications.

Step 1: Create the .ics File Content

Use this sample .ics content:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Your Organisation//NONSGML v1.0//EN
BEGIN:VEVENT
UID:event-unique-id@yourdomain.com
DTSTAMP:20241112T090000Z
DTSTART:20241112T100000Z
DTEND:20241112T110000Z
SUMMARY:Meeting
DESCRIPTION:Meeting Details
LOCATION:Online
END:VEVENT
END:VCALENDAR

Field breakdown:

  • UID: A unique event identifier (e.g. [email protected])
  • DTSTAMP: Timestamp of event creation (in UTC)
  • DTSTART/DTEND: Event start and end times in YYYYMMDDTHHMMSSZ format
  • SUMMARY: The event title
  • DESCRIPTION: More details about the event
  • LOCATION: Physical or virtual meeting location

Step 2: Save the .ics File

  • Open any plain text editor (e.g. Notepad or VS Code)
  • Paste the above content
  • Save the file with a .ics extension (e.g. your-event.ics)
  • Upload this file to a public web directory on your site or hosting platform

Use this HTML link to allow users to download and open the .ics file:

<a href="path/to/your-event.ics" download>Add to Apple Calendar or Outlook Desktop</a>

Replace path/to/your-event.ics with the direct URL where your .ics file is hosted. When clicked, this file will open in the user’s default calendar application and add the event.

Thunderbird Calendar Entry

Thunderbird supports .ics files just like Apple and Outlook.

  1. Ensure your .ics file is created and hosted as described above.
  2. Use the same download link:
<a href="path/to/your-event.ics" download>Add to Thunderbird Calendar</a>
  1. In Thunderbird:

    • Go to the Calendar tab
    • Select File > Import
    • Choose the .ics file and confirm

The event will be added to your selected calendar.

Further Tips for Calendar Integration

  • Host .ics files on HTTPS: Avoid hosting .ics files on unsecured or slow servers, as this may prevent downloads.
  • Customise every event: Adjust titles, descriptions, and timings for each campaign or user segment.
  • Mobile-friendly: Ensure your calendar links or downloads work on mobile devices. Most apps handle .ics files natively.
  • Timezone consistency: Always use UTC time in .ics files and Google/Outlook links to avoid confusion across regions.

Using these methods ensures your events are seamlessly added to your recipients’ calendars, improving participation and professionalism in your communications.

Start Your Free Trial Today

Join thousands of South African businesses sending better emails

Free Credits to Get Started No Card Required
Local Support South African Team
POPIA & GDPR Compliant Trusted & Secure
Create Free Account