Dave,
You'd have to use ActiveX if you have a single browser environment. Here is
reference I found in the archives.
-----------------------------------------------------
About integrating CF with Exchange/Outlook...
Collaboration Data Objects (CDO) runs on the server side, and is an
interface to Exchange's Messaging Application Programming Interface (MAPI)
model. You can find information about CDO at msdn.microsoft.com - one thing
that keeps us from using it, though, is that the CF server would have to be
running as an account that has access to any Exchange folder it needs to
work with. And we probably cannot get that kind of access to the Exchange
server.
One thing we've looked at is to access a single user's Exchange/Outlook
folders on the client side. Outlook can be automated in a similar way to
Word or Excel, using ActiveX objects. If a user has Outlook installed, they
already have the ActiveX objects installed - all you need to do is script
them with JavaScript or VBScript. Information about the Outlook object model
for scripting can be found in Outlook's Help when you're in the Visual Basic
Editor.
Here is some sample code for scripting Outlook in JavaScript. This code adds
an appointment to the current user's default calendar. Haven't done it yet,
but I'm assuming you could put this in a CFML template and replace data
using CFOUTPUT and #'s:
var olFolderCalendar = 9;
var olAppointmentItem = 1;
function AddAppointment()
{
// Get the Outlook application and Exchange namespace
objApp = new ActiveXObject("Outlook.Application");
objNS = objApp.GetNameSpace("MAPI");
// Get the user's default calendar folder
objFolder = objNS.GetDefaultFolder(olFolderCalendar);
// Add an appointment item to the folder
objItem = objFolder.Items.Add(olAppointmentItem);
// Set properties for new appointment item
objItem.Start = "20 Aug 2001 2:00PM";
objItem.End = "20 Aug 2001 3:00PM";
objItem.Subject = "A new appointment";
objItem.Body = "This is the body text of the appointment.";
// Save the appointment item
objItem.Save();
}
----- Original Message -----
From: "Dave Wilson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 6:49 AM
Subject: Displaying the clients outlook folders
> Hi all,
>
> I've successfully connected to Outlook using COM on the server, but this
> only displays the contents of the folders on that server's instance of
> outlook. I want to be able to display the messages, calendar, notes etc
> residing on the client machine, without using Exchange server. I've seen
> this done on another site and wondered if anybody here knew how to do it.
>
> Thanks,
> Dave
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists