Hey all. I think my title pretty much describes my problem.
I'm trying to send meeting invites with cfmail using the iCalendar format. I got the format by exporting a meeting from Lotus Notes so I was sure it would have everything Notes needed to parse it. But when I send it, I'm getting this dialog box:
"The received iCalendar stream could not be correctly parsed into a Meeting Notice"
Here's what I've tried so far:
1.) Sending a file with the iCal message in it as a mime attachment ("text/calendar").
3.) Using cfmailparam to attach the ics file as above.
2.) Creating a ColdFusion string and setting the mime type to "text/calendar".
Code:
<!--- This is the iCalendar format. Each line must be explicitly terminated with a carriage return and a line feed, per RFC 4324 --->
<cfset cal = "BEGIN:VCALENDAR" &
"#chr(13)##chr(10)#" &
"X-LOTUS-CHARSET:UTF-8" &
"#chr(13)##chr(10)#" &
"VERSION:2.0" &
"#chr(13)##chr(10)#" &
"PRODID:-//Lotus Development Corporation//NONSGML Notes 7.0//EN" &
"#chr(13)##chr(10)#" &
"METHOD:PUBLISH" &
"#chr(13)##chr(10)#" &
"BEGIN:VTIMEZONE" &
"#chr(13)##chr(10)#" &
"BEGIN:VEVENT" &
"#chr(13)##chr(10)#" &
"TZID:Central" &
"#chr(13)##chr(10)#" &
"BEGIN:STANDARD" &
"#chr(13)##chr(10)#" &
"DTSTART:19501105T020000" &
"#chr(13)##chr(10)#" &
"TZOFFSETFROM:-0500" &
"#chr(13)##chr(10)#" &
"TZOFFSETTO:-0600" &
"#chr(13)##chr(10)#" &
"RRULE:FREQ=YEARLY;BYMINUTE=0;BYHOUR=2;BYDAY=1SU;BYMONTH=11" &
"#chr(13)##chr(10)#" &
"END:STANDARD" &
"#chr(13)##chr(10)#" &
"BEGIN:DAYLIGHT"&
"#chr(13)##chr(10)#" &
"DTSTART:19500312T020000" &
"#chr(13)##chr(10)#" &
"TZOFFSETFROM:-0600" &
"#chr(13)##chr(10)#" &
"TZOFFSETTO:-0500" &
"#chr(13)##chr(10)#" &
"RRULE:FREQ=YEARLY;BYMINUTE=0;BYHOUR=2;BYDAY=2SU;BYMONTH=3" &
"#chr(13)##chr(10)#" &
"END:DAYLIGHT" &
"#chr(13)##chr(10)#" &
"END:VTIMEZONE" &
"#chr(13)##chr(10)#" &
"BEGIN:VEVENT" &
"#chr(13)##chr(10)#" &
"DTSTART;TZID=#chr(34)#Central#chr(34)#:20080307T090000"&
"#chr(13)##chr(10)#" &
"DTEND;TZID=#chr(34)#Central#chr(34)#:20080307T100000" &
"#chr(13)##chr(10)#" &
"TRANSP:OPAQUE" &
"#chr(13)##chr(10)#" &
"RDATE;VALUE=PERIOD:20080307T150000Z/20080307T160000Z" &
" ,20080404T140000Z/20080404T150000Z,20080502T140000Z/20080502T150000Z" &
" ,20080606T140000Z/20080606T150000Z,20080704T140000Z/20080704T150000Z" &
" ,20080801T140000Z/20080801T150000Z,20080905T140000Z/20080905T150000Z" &
" ,20081003T140000Z/20081003T150000Z,20081107T150000Z/20081107T160000Z" &
"#chr(13)##chr(10)#" &
"DTSTAMP:20080111T171955Z" &
"#chr(13)##chr(10)#" &
"CLASS:PUBLIC" &
"#chr(13)##chr(10)#" &
"DESCRIPTION:" &
"#chr(13)##chr(10)#" &
"SUMMARY:Monthly ColdFusion Environment Discussion" &
"#chr(13)##chr(10)#" &
"UID:482DF7F9A991942C862573CD005EA8C8-Lotus_Notes_Generated" &
"#chr(13)##chr(10)#" &
"X-LOTUS-PARITAL-REPEAT:TRUE" &
"#chr(13)##chr(10)#" &
"X-LOTUS-UPDATE-SEQ:1" &
"#chr(13)##chr(10)#" &
"X-LOTUS-UPDATE-WISL:$S:1;$L:1;$B:1;$R:1;$E:1;$W:1;$O:1;$M:1" &
"#chr(13)##chr(10)#" &
"X-LOTUS-START;TZID=#chr(34)#Central#chr(34)#:20080307T090000" &
"#chr(13)##chr(10)#" &
"X-LOTUS-END;TZID=#chr(34)#Central#chr(34)#:20080307T100000" &
"#chr(13)##chr(10)#" &
"X-LOTUS-NOTESVERSION:2" &
"#chr(13)##chr(10)#" &
"X-LOTUS-NOTICETYPE:A" &
"#chr(13)##chr(10)#" &
"X-LOTUS-APPTTYPE:3" &
"#chr(13)##chr(10)#" &
"X-LOTUS-CHILD_UID:29B38BBE3A8E365F862573E20052B0EE" &
"#chr(13)##chr(10)#" &
"END:VEVENT" &
"#chr(13)##chr(10)#" &
"END:VCALENDAR" &
"#chr(13)##chr(10)#">
<!--- try sending string inline --->
<cfmail to="recipient@example.com"
from="Brian"
replyTo="to@example.com"
subject="cal test"
type="text/calendar">#cal#</cfmail>
<!--- Send as cfmailparam attachment --->
<cfmail to="recipient@example.com"
from="Brian"
subject="attach Vcal Test"
type="text/calendar"><cfmailparam type="text/calendar" file="/temp/ical.ics"></cfmail>
<!--- Send as mime attachment --->
<cfmail to="recipient@example.com"
from="Brian"
subject="attach Vcal Test"
type="text/calendar"
mimeattach="/dynamic/coldfusion/brian_test/ical.ics"></cfmail>
The inline text doesn't even get to my inbox. The attachments get there but can't be parsed. Gmail seems to parse it fine. Notes just seems to be very particular. Does anyone have any experience with this? Ideas? Suggestions?
Thanks!