Possibility to create and send ICS file

Possibility to create and send ICS file

Hi,

I'm looking for a possibility to create an email which outlook can read. Discovered some, but don't know how to implent this into my script.
I need to create a ICS file like this:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;TZID=US/Central:20071214T210000Z
DTEND;TZID=US/Central:20071214T230000Z
SUMMARY: TEST SUMMARY
DESCRIPTION: TEST DESCRIPTION
UID:tpn1456-33432
SEQUENCE:0
DTSTAMP:20071207T151700
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

When this is done I need to change the standard date/time in creator into the ICS datestamp.

Any help would be great!!!

Cheers,