We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Draft Appointment Request - when created- it's not added into my calendar

When I create a draft appointment request from Apose.Email and open it in Outlook, after filling the recipients and sending it - it’s not added into my calendar. All the recipients can see the appointment and accept/reject it, but it’s not visible in my Outlook calendar. Do you have any idea why?

This is how I create it:

Appointment app = new Appointment("", “”, messageBody, startDate, endDate, organizer, attendees);

//Set the Appointment as Draft

MapiMessage mapiMsg = MapiMessage.fromMailMessage(message);

Thanks in advance for any help,
Hi Mariusz,

Sorry for a delayed response as this issue needed some thorough investigation.

I have analyzed the requirement and observed that this issue arises due to specific behaviour of outlook and selected way of sending appointment.

The VCALENDAR structure contains UID (Unique identifier of VCALENDAR instance). When this appointment is created and saved on disc using AE, outlook does not register this ID in calendar.

Next it is opened in Outlook and sent to the recipients which again causes the Outlook to miss the ID logging and that is why it is not there in the calendar.

I have observed that when you open it in Outlook 2010, before sending it to recipients, press the button "Copy to My Calendar". It will cause the appointment to be registered in your local calendar and you will be able to perform subsequent operations in future related to this appointment.

So in Outlook 2007 there is no way to make it work?


Hi Mariusz,

I have checked this behavior in Outlook 2007 and am afraid to inform that I could not find any option to save the appointment in Calendar while sending it. As Aspose.Email cannot interact with Outlook so this requirement is beyond the scope of Aspose.Email.

Please feel free to write us back if you have any other query in this regard.

Ah… OK, in that case we need to remove that functionality from our system as it is useless without saving the appointment in the calendar. I hope you find a solution at some point :slight_smile:

Hi Mariusz,

We are sorry for a delayed response.

You don’t need to remove this functionality from your system even if you are using Outlook 2007. Here is how you can achieve this:

  1. Open outlook
  2. Drag the draft appointment .msg file from your saved location to the Outlook’s Calendar tab. This will automatically add the draft appointment to the calendar
  3. Send the meeting request
After this is sent, the appointment object remains in your calendar and any response to the sent invitation will be updated as well on this item. I hope this helps you achieve your requirements. Please write us your feedback if you have any other inquiry in this regard.

Unfortunately not, what we do is we expose a menu item in the web application to create a new appointment and we attach some files into it. The file is automatically downloaded to the user PC in the background and the automatically opened, so the user cannot see the .msg file. And user will not understand why it’s not appearing in his Calendar. That’s why we had to remove that functionality in the end.

But if you find a way how to add that appointment into the calendar automatically please let me know :


Hi Mariusz,

We are sorry for the inconvenience you are facing.

While we are further investigating this issue, could you please try this out with .ics file and see if this solves your issue? At my end, if I save the draft appointment as .ics and send it (by opening it in outlook), it remains in my outlook calendar even after the appointment is sent. Please let us know your feedback then.

But if I save it as .ics I won’t be able to select recipients in Outlook. What we do is we create a Draft appointment with just the attachments and user sets the recipients in Outlook, that’s only possible if I save it as .msg

Hi Mariusz,

In case there are no attachments to be attached with the Draft appointment, then the following code can be used to create a draft appointment in ics format without adding attendees:

MailAddressCollection attendees = new

attendees.add(new MailAddress("attendee_address@aspose.com", "Attendee"));

Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"));

calendar.set(2013, Calendar.JUNE, 14, 0, 0, 0);

Date startDate = calendar.getTime();

calendar.set(2013, Calendar.JUNE, 14);

Date endDate = calendar.getTime();

Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Please confirm your availability",

startDate, endDate,

new MailAddress("organizer@aspose.com"), attendees);



app.save("AppWithoutAttendees.ics", AppointmentSaveFormat.Ics);

But as attaching files to the appointment is also your requirement, it is possible with .msg files only. I would request you to please spare us a little time so as we can investigate any such possibility and will get back to you on this soon.

<span lang=“EN-US” style=“font-size:11.0pt;font-family:
minor-latin;mso-bidi-font-family:“Times New Roman”;color:#1F497D;mso-ansi-language:
EN-US;mso-fareast-language:PL;mso-bidi-language:AR-SA”>Thanks for all your
effort in looking this up!

<span lang=“EN-US” style=“font-size:11.0pt;font-family:
minor-latin;mso-bidi-font-family:“Times New Roman”;color:#1F497D;mso-ansi-language:
<span lang=“EN-US” style=“font-size:11.0pt;font-family:
minor-latin;mso-bidi-font-family:“Times New Roman”;color:#1F497D;mso-ansi-language:
<span lang=“EN-US” style=“font-size:11.0pt;font-family:
minor-latin;mso-bidi-font-family:“Times New Roman”;color:#1F497D;mso-ansi-language:

Hi Mariusz,

You are welcome. Just to share with you, an investigation ticket with id: NETWORKNET-33882 has already been logged for further investigation in this regard and as soon as their is some information available, we’ll update you here.