From: Jeff Miller Date: 2008-03-27T06:46:28+09:00 Subject: MAPI Logon Hello, I'm trying to start up a MAPI session and get my project rolling... However, when I run my code below (it's supposed to just log in) I get an error telling me that 'MAPI.Session' is an unknown OLE server... My code is borrowed, but is as follows: require 'win32ole' mapiSession = WIN32OLE::new('MAPI.Session') WIN32OLE.const_load(mapiSession, MapiConst) exchangeServer = 'ex' mailbox = 'galthis' logonParam = "ProfileInfo:="+ exchangeServer + "\r" + mailbox mapiSession.Logon(logonParam) This kicks me the error: test_mapisession.rb:3:in `initialize': unknown OLE server: `MAPI.Session' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from test_mapisession.rb:3:in `new' from test_mapisession.rb:3 I don't know what I'm doing wrong, or if I need something else installed on my machine, I don't know... I can access MAPI outlook stuff using WIN32OLE.new('Outlook.Application'), but for some reason MAPI.session doesn't work... Any ideas? Any help is appreciated! Thanks, - Jeff -- Posted via http://www.ruby-forum.com/.