Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / June 2005

Tip: Looking for answers? Try searching our database.

Opening a inbox without outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Scholes - 28 Jun 2005 03:29 GMT
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
Michael Bauer - 28 Jun 2005 06:49 GMT
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

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> Hi,
>
[quoted text clipped - 16 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Mark Scholes - 28 Jun 2005 09:00 GMT
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
Michael Bauer - 28 Jun 2005 14:29 GMT
Sorry, Exchange isn´t my area so far.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> Hi,
>
[quoted text clipped - 5 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Ken Slovak - [MVP - Outlook] - 29 Jun 2005 14:54 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi,
>
[quoted text clipped - 16 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.