Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2004
    Posts
    75

    Unanswered: creating an .ics file

    Does anyone know how to create and format an .ics file?

    breeze76

  2. #2
    Join Date
    Apr 2004
    Posts
    75

    Lightbulb

    Quote Originally Posted by breeze76
    Does anyone know how to create and format an .ics file?

    breeze76
    OK kind of answered my own question, but am using a .vcs file instead.. But here is my QUESTION:

    OK.. I want to attach a file created each time a user fills out a form, and save it as a *.vcs file and then after the user logs off it is deleted so it can be used again. Here is the code I got from MSOutlook vcs file:

    BEGIN:VCALENDAR
    PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
    VERSION:1.0
    BEGIN:VEVENT
    DTSTART:20040429T050000Z
    DTEND:20040506T050000Z
    LOCATION;ENCODING=QUOTED-PRINTABLE:Any where
    UID:040000008200E00074C5B7101A82E00800000000106B8F F9252EC4010000000000000000100
    0000066F713F407EE07498608835257C8CE15
    SUMMARY;ENCODING=QUOTED-PRINTABLE: Deposition Scheduled
    PRIORITY:3
    END:VEVENT
    END:VCALENDAR

    Questions:
    1) Does it need this info: "PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN"

    2) Is the version needed: "VERSION:1.0"

    3) Does the time and date need to be formatted like this : "DTSTART:20040429T050000Z"

    4) Is this UID info needed: "UID:040000008200E00074C5B7101A82E00800000000106B8 FF9252EC4010000000000000000100
    0000066F713F407EE07498608835257C8CE15"

    5) How would I save the info and attach it to the email? I am going to use a static name so I could hard code the attachment to email, easily done.

    I have a few more questions, but will wait and see if anyone will attack this issue with me.

    Thanks...

    breeze76

  3. #3
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    Check out the specs regarding Personal Data Interchange (aka: vCard and vCalendar).

    http://www.imc.org/pdi/

    I have an app that utilizes vCard. And when I want to email a vCard to someone, my ASP creates a temp file, writes the vCard info to the temp file, attaches that file to an email via ASPMail (www.serverobjects.com), sends the mail and then deletes the temp file.
    That which does not kill me postpones the inevitable.

  4. #4
    Join Date
    Apr 2004
    Posts
    75
    Quote Originally Posted by Seppuku
    Check out the specs regarding Personal Data Interchange (aka: vCard and vCalendar).

    http://www.imc.org/pdi/

    I have an app that utilizes vCard. And when I want to email a vCard to someone, my ASP creates a temp file, writes the vCard info to the temp file, attaches that file to an email via ASPMail (www.serverobjects.com), sends the mail and then deletes the temp file.
    Thanks I will check it out.. would you share the code you use to do your vCard? Thanks again for your reply..
    I think this would add a nice feature to the schedule form users fill out..

    breeze76

  5. #5
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    I would post my code, but it's not pretty. Would you like to see the file handling, or what? Most of the code is really just formatting the text of the vCard from a database, then there's a small bit that does the file operations and the email delivery. The whole thing is over 600 lines (not counting include files), and I don't think you want to sift through that!
    That which does not kill me postpones the inevitable.

  6. #6
    Join Date
    Apr 2004
    Posts
    75
    Quote Originally Posted by Seppuku
    I would post my code, but it's not pretty. Would you like to see the file handling, or what? Most of the code is really just formatting the text of the vCard from a database, then there's a small bit that does the file operations and the email delivery. The whole thing is over 600 lines (not counting include files), and I don't think you want to sift through that!
    Well... not sure.. Like I mentioned, I have a form, it is filled out, I would like to input some of the info into the vCalendar to attach to the enail they receive about the form they just filled out so they can import it (vCalendar) into whatever calendar program they use.

    So, with that said, I am not sure what I would need, so I am sure you could tell me....

    You can send mr whatever in email so not to clutter this up or however you would like.

    Thanks

    breeze76

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •