There is an open, technical standard called iCalendar that allows applications and systems from many different vendors to transfer calendar information between each other. iCalendar files, which are in fact text files, typically have the file extension “.ICS”. ICS files can be imported to or opened in any desktop, web or mobile calendar application such as Apple, Gmail, Outlook, Samsung, Yahoo! and all other.
Google Calendar maintains additional, proprietary standard for calendar meetings and recommends it for a better user experience. Although the .ICS calendar obviously works with the Google Calendar application, users need to download the .ICS file first and then open it with the calendar application. A direct link to a Google Calendar Event triggers the Google Calendar dialog box instantly.
TIP: The iCalendar open standard should not be confused with iCal, the former name for the commercial product “Calendar” developed by Apple Computer.
Use this in an invitation email to a webinar or an event.
Process:
- Create an .ICS file using Outlook or the online tool
- Create a Google Calendar Event using the online tool
- Store the ICS (
outlook-event.ics
) on SFMC just like an image; put down the URL to Google Calendar - Create Add to Calendar buttons in an email and link to the generated calendars
- Test the email for your Outlook account and for a Gmail account
Email Sample 1
Links visible for all recipients
Hello Attendees!
Please join our webinar this Friday at 3pm. We will present new features for the ACME mobile application.
Add the event to your calendar.
Apple | Yahoo | Outlook | Google
Email Sample 2
With conditional formatting showing/hiding buttons
The snippet contains two versions: one is with a button to Google Calendar and ICS visible for all .gmail.com recipient and the second version has ICS calendar only (for non-gmail users that is Apple, Yahoo). More conditions can be created for other Calendars.
<!--CONDITIONAL FORMATTING FOR BUTTONS-->
%%[
var @domain
set @domain = Domain(emailaddr)
]%%
%%[ if @domain == "gmail.com" then ]%%
<!--Google Calendar button-->
<table class="dashedBorder" cellspacing="0" cellpadding="0" border="0" width="100%" style="font-size: 13px;">
<tbody>
<tr>
<td style="background: #ffffff; padding-bottom: 25px; padding-top: 25px;" align="center">
<table cellspacing="0" cellpadding="0" align="center" border="0">
<tbody>
<tr>
<td style="-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;" bgcolor="#f03a17" align="center"><a href="http://www.google.com/calendar/event?action=TEMPLATE&dates=20181030T120000Z%2F20181030T130000Z&text=Add%20to%20Calendar%20-%20project%20meeting&location=online%20event" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; padding: 12px 18px; border: 1px solid #f03a17; display: inline-block;">Add To Google Calendar</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!--end of Google Calendar button-->
<!--ICS Calendar button-->
<table class="dashedBorder" cellspacing="0" cellpadding="0" border="0" width="100%" style="font-size: 13px;">
<tbody>
<tr>
<td style="background: #ffffff; padding-bottom: 25px; padding-top: 25px;" align="center">
<table cellspacing="0" cellpadding="0" align="center" border="0">
<tbody>
<tr>
<td style="-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;" bgcolor="#1186ca" align="center"><a href="outlook-event.ics" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; padding: 12px 18px; border: 1px solid #1186ca; display: inline-block;">Add To Calendar</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!--end of ICS Calendar button-->
%%[ else ]%%
<!--ICS Calendar button-->
<table class="dashedBorder" cellspacing="0" cellpadding="0" border="0" width="100%" style="font-size: 13px;">
<tbody>
<tr>
<td style="background: #ffffff; padding-bottom: 25px; padding-top: 25px;" align="center">
<table cellspacing="0" cellpadding="0" align="center" border="0">
<tbody>
<tr>
<td style="-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;" bgcolor="#1186ca" align="center"><a href="outlook-event.ics" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; padding: 12px 18px; border: 1px solid #1186ca; display: inline-block;">Add To Calendar</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!--end of ICS Calendar button-->
%%[ endif ]%%