From: Keith Sader Date: 2006-03-29T12:34:38+09:00 Subject: Re: Seeking win32ole CDO/Mapi help My sincere apologies for being so dense. Yes that was it using logonParam = "ProfileInfo:="+ exchangeServer + "\n" + mailbox instead of \r made everything all better. Now I must go bang my head into the wall some more :-) thanks, On 3/28/06, Tanner Burson wrote: > On 3/28/06, Keith Sader wrote: > > > > I'm trying to read a remote mail store using the CDO OLE interface > > using the ProfileInfo interface as described here: > > http://www.vbip.com/books/1861002068/chapter_2068_04.asp, but I've run > > into the wall of my own ignorance. > > > > Here's what I have so far: > > > > # Ruby code > > require 'win32ole' > > > > mapiSession = WIN32OLE::new('MAPI.Session') > > > > #load MAPI constants > > class MapiConst > > end > > WIN32OLE.const_load(mapiSession, MapiConst) > > > > exchangeServer = 'myServer > > mailbox = 'mail@foo.com' > > logonParam = "ProfileInfo:="+ exchangeServer + "\r" + mailbox > > mapiSession.Logon(logonParam) > > # the rest of the code... > > > > I believe linefeed is \n and \r is carriage return. -- Keith Sader ksader@gmail.com http://www.saderfamily.org/roller/page/ksader