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();
}
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
RE: Synchronize Web Based DataWith Oulokk
Smutz, Miles A Mr DVLPRS (Contractor) Tue, 31 Jul 2001 05:52:04 -0700
- Synchronize Web Based DataWith Oulo... Mardi Himawan
- RE: Synchronize Web Based Data... Craig Fisher
- RE: Synchronize Web Based Data... Smutz, Miles A Mr DVLPRS (Contractor)
- RE: Synchronize Web Based Data... mherbene
- RE: Synchronize Web Based Data... Thomas Chiverton
- RE: Synchronize Web Based Data... Dave Watts
- Passing a form file to CFMA... Wildminds
- RE: Passing a form file... Cameron Childress
- RE: Passing a form file... Peter Tilbrook

