From: Jeff Miller Date: 2008-03-28T07:04:55+09:00 Subject: Re: MAPI Logon Thanks guys, that helped! I am now on a dev box that has Exchange System Manager installed, giving me access to MAPI32 and CDO. My session and logon work great now, but I can't seem to get any further using the same type of code that I used for Outlook MAPI previously. I want to return a list of folders, but nothing I've tried seems to work. When I do the following: require 'win32ole' session = WIN32OLE.new('Mapi.session') session.logon('profilename') What can I use to gain access to mailboxes? Previously, for Outlook MAPI, I used: outlook = WIN32OLE.new('Outlook.Application') mapi = outlook.GetNameSpace('MAPI') mailbox = mapi.Folders.Item("Mailbox - USERNAME") contacts_folder = mailbox.Folders.Item("Contacts") Where 'mailbox' defines which mailbox to use. However, I don't think I can do that the same way for Exchange MAPI. Does anyone know how to do this or have any experience with it? Any and all help is appreciated! Thanks!!! -- Posted via http://www.ruby-forum.com/.