Using ColdFusion CFMail to send Microsoft Outlook Appointment Request
Filed under CFMail , ColdFusion
I was asked to find a way to send a Microsoft Outlook Appointment Request email using ColdFusion cfmail tag. I was very much in luck with ColdFusion 8. Below is cfmail code I found that produces the outlook meeting request.
| <cfmail to="test@test.com" from="youremail@test.com" subject="Test appointment" type="multipart"> <cfmailparam name="content-class" value="urn:content-classes:calendarmessage"> <cfmailparam name="content-type" value="text"> <cfmailparam name="method" value="request"> <cfmailparam name="charset" value="utf-8"> <cfmailparam name="content-transfer-encoding" value="7bit"> <cfmailpart type="text"> TEST TEST TEST </cfmailpart> <cfmailpart type="text/calendar"> BEGIN:VCALENDAR PRODID:-//Microsoft Corporation//Outlook 11.0 MINMEDIR//EN VERSION:2.0 METHOD:PUBLISH BEGIN:VEVENT DTSTART:20080317T123000Z DTEND:20080317T133000Z LOCATION: Reno TRANSP:OPAQUE SEQUENCE:0 UID:0 DTSTAMP:20080303T140000Z DESCRIPTION:Descriptive text here.\n SUMMARY:Short summary here PRIORITY:5 X-MICROSOFT-CDO-IMPORTANCE:1 CLASS:PUBLIC END:VEVENT END:VCALENDAR </cfmailpart> </cfmail> |
All you need to do is setup a simple input form and call the appropriate variables needed (recipient email, body of email, DTSTART, DTEND etc.). For more information on how to create a vCalendar file check out the following link http://support.microsoft.com/kb/287625
| View count: 3930Nov12








