Interacting With Microsoft Exchange Servers - Adobe COLDFUSION 9 Manual

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
Note: Message numbers are reassigned at the end of every POP mail server communication that contains a delete action.
For example, if you retrieve four messages from a POP mail server, the server returns the message numbers 1,2,3,4. If you
delete messages 1 and 2 with a single
Delete messages
Create a ColdFusion page with the following content:
1
<html>
<head>
<title>POP Mail Message Delete Example</title>
</head>
<body>
<h2>This example deletes messages:</h2>
<cfpop server="mail.company.com"
username=#username#
password=#password#
action="Delete"
messagenumber="1,2,3">
</body>
</html>
Edit the following lines so that they use valid values for your POP mail server, user name, and password:
2
<cfpop server="mail.company.com"
username=#myusername#
password=#mypassword#
3
Save the file as message_delete.cfm in the myapps directory under your web_root and view the file in your web
browser.
Run the header_only.cfm page that you created to confirm that the messages have been deleted.
4
Important: When you view this page in your web browser, ColdFusion immediately deletes the messages from the POP
server.

Interacting with Microsoft Exchange Servers

You can use Adobe ColdFusion to interact with Microsoft Exchange servers to send, get, and manage mail; and to
create, get, and manage calendar events, connections, and tasks.
Using ColdFusion with Microsoft Exchange servers
ColdFusion can interact with the Microsoft Exchange server to perform the following actions:
Item
Actions
Mail messages
get, get attachments, get meeting information, move to a different folder, delete, delete attachments, set
properties
tag, messages 3 and 4 are assigned message numbers 1 and 2, respectively.
cfpop
Last updated 8/5/2010
1207

Advertisement

Table of Contents
loading

Table of Contents