Skip to main content

Cloud

Limitation of programming vCalendar Meeting Requests using System.Net.Mail

Programmatically creating Outlook meeting request has been a hot topic for me over the past few weeks. I found myself in a scenario that required me to send a meeting request from a user and was using the System.Net.Mail namespace to do the job.While creating the meeting request, a limitation surfaced as result of the approach I was using. I used the code from the blog below as a foundation to start with.

http://weblogs.asp.net/bradvincent/archive/2008/01/16/creating-vcalendars-programmatically.aspx

Although the vCalendar format includes ‘Request’ as part of it’s schema, the ‘flow’ of messages is not the same as if an Outlook meeting request was created directly from the client application. The meeting request will be sent to the recipient with the organizer’s account in the ‘From’ field, but the organizer will not have it on their Outlook calendar.

Will provide the code needed to send Outlook meeting request using the System.Net.Mail namespace. The main drawback of programmatically creating Outlook meeting requests using this technique is the lack of options under Accept/Decline.

Outlook with no Options under Accept and Decline

After doing some research, I discovered when the organizer creates the request from their Outlook client, a UID (unique ID) is created.The meeting request that ends up on the recipients calendar references that same UID as the originator’s.This results in the additional options under Accept, Tentative, and Decline.

When creating a meeting request from code however, the UID object is instantiated at runtime and does not get associated with the originator at all.Therefore, Accepting/Denying with any follow up message is not possible.

If both the originator and recipient(s) happen to be using the same Exchange server (2007 or 2010), a solution to the above problem can be found via the Exchange Web Services Managed API. Here is a link that will get you started.

Thoughts on “Limitation of programming vCalendar Meeting Requests using System.Net.Mail”

  1. Hi Steven,
    I was facing the same issue but could not able to check for a solution. Thanks for your information on the same. Don’t we have a work around using the System.Mail to block the organiser calendar because i was not supposed to use the exchange and outlook dlls. Kindly please help me out.
    Thanks
    rajani

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Steven Mierop

As a Lead Technical Consultant at Perficient, I've had the pleasure of designing and delivering custom solutions on SharePoint 2007-2013. I have a strong passion for web application development and the .NET framework. Over the past three years, I have implemented a variety of SharePoint and .NET solutions for clients in a wide range of Industries such as Health Care, Insurance, Pharmaceutical, and Publishing.

More from this Author

Follow Us
TwitterLinkedinFacebookYoutubeInstagram