ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 7th, 2008, 11:49 AM
karniv0re karniv0re is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 14 karniv0re User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 44 sec
Reputation Power: 0
Cfmail, iCalendar, Lotus Notes 7.0.2

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!

Reply With Quote
  #2  
Old March 7th, 2008, 12:21 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
I haven't dealt with any of these systems so I can't offer anything concrete. My advice would be to take the generated text and try sending it manually as an attachment to see if Notes can handle it. Mess with it until it works. Then ensure that what CF is generating matches that.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old March 7th, 2008, 02:49 PM
karniv0re karniv0re is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 14 karniv0re User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 44 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
I haven't dealt with any of these systems so I can't offer anything concrete. My advice would be to take the generated text and try sending it manually as an attachment to see if Notes can handle it. Mess with it until it works. Then ensure that what CF is generating matches that.


The problem is that iCalendar is very picky about its formatting. So I wanted to use ColdFusion (or Java, or whatever) to explicitly put the carriage returns and line feeds in there.

Like I said, Gmail parses it fine. And when I open the attachment, it asks if I want to import it to my calendar. So I don't know why it won't just parse it when it receives it.

I talked to IBM tech support and they didn't seem to know much.

Surely someone has tried to automate meetings and events. I will be surprised if I'm the first one.

Reply With Quote
  #4  
Old March 7th, 2008, 08:32 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
I've done it with Exchange (in CF8 its one line of code). But honestly I've never even met anyone personally who used Lotus Notes at all, much less with CF. Hopefully someone may surprise us though!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Cfmail, iCalendar, Lotus Notes 7.0.2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway