Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

create an .ics Calendar File on the fly

Explorer ,
May 09, 2006 May 09, 2006
I try to make events available as .ics calendar.

If I actually let the file being physically written a double click on the file imports the event into Outlook correctly

But in the cfheader part the files seems not be generated correctly.
The dialog to open in Outllok appears but the Outlook eyplains that the import doesn't work because something like: "file can not be imported, might have something to to with the Mooncalendar, change to Gregorian..."

Do I really have to save the file and then cffile reading the file again?
Or are there any other ways to do it rigth?
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 10, 2006 May 10, 2006
I've had success with the attached code. I use a different content type than you, and specify inline for content disposition.

Can't guarantee this, but I recall a few different approaches through trial and error before I got this to work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 10, 2006 Jul 10, 2006
LATEST
I have an event registration application that currently sends out an email confirming the users successful registration. I wanted to include an .ics file in the email for the puropose of allowing the user to add the event to their Outlook Calendar. Is there an alternative to achieving this?

I have been playing with Goolge's Calender and I wanted to copy what they do with their email invitation.

Here is what is created using Google Calendar:

BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20060626T190000Z
DTEND:20060626T203000Z
DTSTAMP:20060710T172443Z
ORGANIZER;CN=Tom Jones:MAILTO:my@email.com
UID:gneheiu649are0h43lgm2gvdlg@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
;CN=Tom Jones;X-NUM-GUESTS=0:MAILTO:my@email.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;X-NUM-GUESTS=0:MAILTO:your@email.com
CLASS:PRIVATE
CREATED:20060710T172443Z
DESCRIPTION:testing ics file creation
LAST-MODIFIED:20060710T172443Z
LOCATION:my desk
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:test 2
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

Is there a source .ics documentation? I am a little confused as to what the values are.

Is there a way to only be able to accept the event not decline or propose new time?

Any thoughts are appreciated.

Mark
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources