Working with Outlook Calendar Items using C++ Email Library

Working with MapiCalendar

Aspose.Email’s MapiCalendar class provides methods and attributes to set various properties of a calendar item. This article provides code samples for:

  • Creating and saving calendar items
  • Setting reminders for MapiCalendar items
  • Add/Retrieve Attachments from Calendar
  • Retrieving Status of Recipients from Meeting Requests
  • Creating MapiCalendar TimeZone object from Standard Timezone

Creating and Saving Calendar items

The following code snippet shows you how to create and save a calendar item in ICS format with C++ Email Parser Library or API.

Saving the Calendar item as MSG

The following code snippet shows you how to save the calendar item as MSG.

Adding display reminder to a Calendar

The following code snippet shows you how to add display reminder to a calendar.

Adding audio reminder to a Calendar

The following code snippet shows you how to add audio reminder to a calendar.

Add/Retrieve attachments from Calendar files

The following code snippet shows you how to add/retrieve attachments from calendar files.

Status of Recipients from a Meeting Request

The following code snippet shows you how to status of recipients from a meeting request.

Create MapiCalendarTimeZone from Standard Timezone

The following code snippet shows you how to Create MapiCalendarTimeZone from standard Timezone.

Setting Reminder with the Created Appointment

A reminder can be added when an appointment is created. These alarms can trigger based on different criteria like n minutes before the schedule starts, repeat n times at n intervals. Different tags can be used to create these triggers in the script enclosed by BEGIN:VALARM and END:VALARM within an appointment. There are a number of variants in which the reminder can be set on an appointment.

Setting a Reminder by Adding Tags

The following code snippet shows you how to Set a reminder by adding tags.