Opening a inbox without outlook

  • Thread starter Thread starter Mark Scholes
  • Start date Start date
M

Mark Scholes

Hi,

I have MAPI installed but no outlook and I want to get e-mails out of
the inbox and proccess them. I have it working on another machine which
has outlook on it, when the program runs it opens outlook. The first
part of the code is this.

' Zip files go to this directory and are deleted after use
strZipPath = "c:\data2\"
strLogPath = "c:\data2\Logs\"
Set mynamespace = Application.GetNamespace("MAPI")
Open strLogPath & "Log.txt" For Append As 1


What changes do I need to make it
Set mynamespace = Application.GetNameSpace("MAPI")
to stop it opening outlook and tell it which inbox to use.

Thanks MarkS
 
Hi Mark,

for working with the OOM Outlook must be installed. You could try using
ADO instead. Jim Vierra posted an example here on Jan. 22th. title:
EXAMPLE: Accessing Outlook folders with ADODB
 
Hi,

Thanks for the sugestion Michael unfortunatly it doesn't do what I want.
This open the PST folders (Personal mail folders), as the e-mail is
still in the inbox on the exchange server I can't get to it.

Regards MarkS
 
If you have no Outlook installed you cannot use the Outlook object model in
your code. If you want to get at the Inbox of an Exchange server you would
in that case have to use something like WebDAV code or some other method of
accessing the Exchange server directly. Another possibility would be using
CDO 1.21, but that's installed optionally by Office, so without Outlook you
wouldn't have that option.

The best place for code questions that involve pure Exchange work would be
one of the Exchange development newsgroups.
 
Back
Top