Sending form as .ics

From: CEFM (charles.freesmelvin_at_gmail.com)
Date: 03/28/05


Date: Mon, 28 Mar 2005 10:03:25 -0400

Is it possible in php to have a web form with the fields of-

Start Year- syyyy
Start Month- smm
Start Day- sdd
Start Hour- shh
Start Min- smin
End Year- eyyyy
End Month- emm
End Day- edd
End Hour- ehh
End Min- emin
Location- location
Catigories- catigories
Discription- message
Title- subject

Format the results as

BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:[syyyy][smm][sdd]T[shh][smin]00Z
DTEND:[eyyyy][emm][edd]T[ehh][emin]00Z
LOCATION:[location]
CATEGORIES:[catigories]
DESCRIPTION:[message]\n
SUMMARY:[subject]
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR

Save it as a attachment as with a file name of event.ics and send it by
e-mail to my address address@somedomain.com ?