Skip to content

← Blog

· 4 min read · email · calendar · events · design

How do I add an 'Add to calendar' button to a marketing email?

There is no single button that works everywhere. Use one link for Google Calendar, one for Outlook on the web, and a hosted .ics file for Apple Calendar and desktop Outlook.

Short answer: No single link opens the right calendar for every reader. The usual setup is three links: a Google Calendar link, an Outlook on the web link, and a small .ics file on your website for Apple Calendar and desktop Outlook. Put them under one button or next to each other, and write the date and time in the email text as well.

The gist

  • Google Calendar and Outlook on the web each accept a link that opens a prefilled "new event" screen. The reader checks it and clicks Save.
  • Apple Calendar and the Outlook desktop app need an .ics file. Host it on your site and link to it. Don't attach it to a bulk email.
  • Write times in UTC with a Z at the end and the calendar converts them to each reader's time zone.
  • Gmail's automatic event cards are meant for confirmations of booked tickets, not for promotions.
  • Always write the date, time and time zone in plain text too. Some readers will never click a calendar link.

Google never published a full reference for this link, but its format is stable and documented by the community. A live shopping event on December 4, 6 to 7 pm Berlin time (17:00 to 18:00 UTC):

https://calendar.google.com/calendar/render?action=TEMPLATE
  &text=Winter%20Live%20Shopping
  &dates=20261204T170000Z/20261204T180000Z
  &details=Watch%20at%20https://example.com/live
  &location=https://example.com/live

Put it on one line without the spaces. text is the title and dates is start and end, separated by a slash. Both times need the Z, or Google reads them in the reader's own time zone. Spaces and special characters must be URL-encoded (%20 for a space).

Outlook.com and Microsoft 365 use a compose deeplink with a different format:

https://outlook.live.com/calendar/deeplink/compose?path=/calendar/action/compose
  &rru=addevent
  &subject=Winter%20Live%20Shopping
  &startdt=2026-12-04T17:00:00Z
  &enddt=2026-12-04T18:00:00Z
  &location=https://example.com/live

For work accounts on Microsoft 365, swap the host for outlook.office.com. If many of your readers use a work address, it is worth a second link.

What is an .ics file and how do I make one?

An .ics file is a plain text calendar entry in the iCalendar format, defined in RFC 5545. Apple Calendar, desktop Outlook and most other calendar apps open it with a double click. A minimal one:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Your Shop//Events//EN
BEGIN:VEVENT
UID:winter-live-2026@example.com
DTSTAMP:20261126T120000Z
DTSTART:20261204T170000Z
DTEND:20261204T180000Z
SUMMARY:Winter Live Shopping
LOCATION:https://example.com/live
END:VEVENT
END:VCALENDAR

The standard requires VERSION and PRODID for the file, and UID and DTSTAMP for the event. A UTC time is the one with the Z at the end. Lines should end with a carriage return plus line feed (CRLF), so save it with Windows line endings if your editor offers the choice.

  1. Save the text as winter-live.ics.
  2. Upload it to your website or shop file storage.
  3. Check that the URL downloads the file instead of showing it as text. If it shows as text, the server needs to send it as text/calendar.
  4. Link to that URL from the email.

Skip time zone rules, reminders and repeating events. UTC is enough for one event.

Can Gmail show the event automatically?

Gmail and Google Calendar can read event markup in an email and add the event for the reader. But that markup describes a reservation: a ticket holder, a reservation number, a status. It fits a ticket confirmation, not a "save the date" sent to a list. Before it shows for anyone but yourself, you have to register with Google, and Google wants a sending history and a very low spam complaint rate.

Apple works in a similar way. Mail suggests events from known providers such as flight or restaurant confirmations, not from newsletters. So for a promotion, your own links are the way to go.

Should I use a service instead?

You can. AddEvent creates email-ready links for Apple, Google, Outlook and Yahoo from one form, with a free plan limited to 100 calendar adds a month. Add to Calendar Button is a component for your website, so it fits the landing page your email links to. Either way you no longer write URLs by hand, and the links point at someone else's servers.

What is a simple recipe?

  1. Write the event in the text: "Friday, December 4, 6 pm Berlin time (CET)".
  2. Add one main button, "Add to calendar", that goes to a page on your site with all three options.
  3. Under it, small text links: "Google · Outlook · Apple (.ics)".
  4. Send a test to a Gmail, an Outlook and an iPhone address and click every link. Check that the time is right in each calendar.
  5. If the time changes, fix the .ics file and send a short update. The Google and Outlook links in emails you already sent cannot be changed.

In OpenHouse these are ordinary links: paste them into a button or a line of text, then send yourself a test; the documentation covers the editor and test sends.


More posts

All posts →