Adobe COLDFUSION 9 Manual page 1230

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
<cfexchangeconnection
action="open"
username ="#user#"
password="#password#"
server="#exchangeServerIP#"
connection="conn1">
<!--- Get all meeting notifications from the Inbox. --->
<cfexchangemail action="get" name="requests" connection="conn1">
<cfexchangefilter name="MessageType" value="Meeting">
</cfexchangemail>
<!--- Get the meeting request data and put it in an array. --->
<cfset i=1>
<cfset meetingData=ArrayNew(1)>
<cfloop query="requests">
<cfexchangemail action="getmeetinginfo" connection="conn1"
name="meeting" meetinguid="#MeetingUID#" mailUID="#UID#">
<cfset meetingData[i]=meeting>
<cfset i=i+1>
</cfloop>
<!--- Loop through the request data array and delete any outdated
meeting messages from the Inbox. --->
<cfloop index="i" from="1" to="#ArrayLen(meetingData)#" >
<cfif meetingData[i].StartTime LTE now()>
<cfexchangemail action="delete" connection="conn1"
UID="#meetingData[i].UID#">
</cfif>
</cfloop>
<cfexchangeconnection
action="close"
connection="conn1">
For another example that deletes all mail from a known spam address, see
page 1210.
Working with meetings and appointments
The following techniques apply specifically to calendar events and the notices about meetings that you get in your mail
Inbox:
• How to get detailed information about meeting requests, cancellation notices, and responses to invitations
• How to specify event recurrence
Working with meeting notices and requests
Your mailbox gets a meeting notice when someone takes any of the following actions:
• Sends you a meeting request
• Cancels a meeting in your calendar
• Responds to a meeting request that you sent and tells Exchange to notify you
Last updated 8/5/2010
"Using persistent
connections" on
1225

Advertisement

Table of Contents
loading

Table of Contents