Send Outlook Calendar Event from Servlet

I am attempting to fire off calendar events to Outlook users as part of a workflow engine. I am havnig some issues where the calendar event is attached (with the little calendar icon) but when the user attempts to open it the following error is revealed:

Cannotimport vCalendar file

This error can appearif you have attempted to save a recurring Lunar appointment in iCalendar format.

To avoidthis error, set the appointment option to Gregorian instead of Lunar.

I am sending a the email with the calendar event as an attachment. Example contents looks like this:

BEGIN:VCALENDAR

VERSION:2.0

PRODID:-//linxas/workflow//NONSGML v1.0//EN

UID: 149285903195@linxas.com

DTSTAMP:20070620T000000Z

METHOD:PUBLISH

CALSCALE:GREGORIAN

BEGIN:VEVENT

DTSTART:20071225T000000Z

DTEND:20071225T000000Z

PRIORITY:1

SUMMARY:Christmas

END:VEVENT

END:VCALENDAR

Does anyone have any success performing a similar function that can point me in the right direction?

Message was edited by:

linxpda_tcole

[1243 byte] By [linxpda_tcolea] at [2007-11-27 8:19:24]
# 1

For those interested...

The VCALENDAR section must include:

METHOD:PUBLISH and

CALSCALE:GREGORIAN

Each VEVENT section must include:

DTSTAMP and

UID values.

After that it imports just fine. So the modified example that works looks like this:

BEGIN:VCALENDAR

VERSION:2.0

PRODID:-//linxas/workflow//NONSGML v1.0//EN

METHOD:PUBLISH

CALSCALE:GREGORIAN

BEGIN:VEVENT

UID:18375629298565627@linxas.com

DTSTART:20070714T170000Z

DTEND:20070715T035959Z

DTSTAMP:20070620T140000Z

SUMMARY:Bastille Day Party

DESCRIPTION:Bastille Day Party Baby

END:VEVENT

END:VCALENDAR

linxpda_tcolea at 2007-7-12 20:07:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...