Re: Read inboxes of various mailboxes on Exchange Server



Hello,

you can do this with WebDAV.

If you have more than one Exchange server, you must first determine the
correct Exchange Server. See
http://infinitec.de/exchange/howtos/getmailboxurl.aspx on how to this.

If you have only one server, you can skip that part and access the Mailbox
via http://myserver/exchange/<alias>

If you have multiple languages, then the path of your inbox folder differs.
In this case do a PROPFIND on the mailbox root and retrieve the property
"urn:schemas:httpmail:inbox". This property contains the url to the inbox
folde. (See
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_getting_well-known_mailbox_folder_urls.asp
for more on this topic, including an example).

Now that you have the URL, do a SEARCH on that folder (see
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_search_tasks.asp)
and get the emails you need.

You say you have all the username/password credentials... You really don't
need them. There are two possible ways around this: Grant a special user
account the rights "Send As" and "Receive As" on the mailbox store. This way
the useraccount you are using has full access to all mailboxes.

The other way is to use the administrative root. Use an administrator
account and instead of the urls above, use this one:
http://server/exadmin/admin/<full-dns-name>/MBX/<alias>

This url circumvents MAPI access checks and you also have full access to the
mailbox.

This is far better than to have a ton of passwords lying around.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


"Frank" <Frank@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E3E6BC54-2ACB-4003-B38A-A14D3C3C9F7C@xxxxxxxxxxxxxxxx
>I need to create a program in VB6 that read the UNREAD emails located in
>the
> inbox of several mailboxes. I've been given a list of the mailboxes
> names,
> alias, username/password. Basically I need to loop through each mailbox
> and
> read all the UNREAD email items in the INBOX. For each email I need to
> know
> the email subject, message body, recipients, sender, and obtain any
> attachments. This program will NOT be running on the same machine as
> Exchange Server.
>
> I've been reading many articles on using CDO, CDOEx, recordsets with ADO,
> and using WebDAV. Any help, suggestions, or code examples/links would be
> greatly appreciated.
>
> Thank you very much for your time,
>
> Frank


.



Relevant Pages

  • Re: Read inboxes of various mailboxes on Exchange Server
    ... Here is a list of of the WebDAV scheme used by exchange: ... To get the attachments, you must use the propietary X-MS-ENUMATTS method ... > at sending a query to our Exchange Server to return back data I needed. ... >> In this case do a PROPFIND on the mailbox root and retrieve the property ...
    (microsoft.public.exchange2000.development)
  • Re: Read inboxes of various mailboxes on Exchange Server
    ... at sending a query to our Exchange Server to return back data I needed. ... to check if an email "has attachments", I needed to search on something like ... show how to retrieve all the attachments an email has using WebDAV and Visual ... > If you have only one server, you can skip that part and access the Mailbox ...
    (microsoft.public.exchange2000.development)
  • Re: Setting folder permissions
    ... We are all using Exchange Server mailboxes (I was the only one using PST's - ... Cheryl - just view the Outlook Folder List (it's the folder icon at the ... That will move them from the subfolder to the main calendar. ... delivery from a PST to the Exchange Server mailbox. ...
    (microsoft.public.windows.server.sbs)
  • Re: Access mailbox contacts from .NET
    ... You cannot use DirectoryServices to access a mailbox or public folder since ... To access mailbox or public folders you'll have to use different techniques, ... such as WebDAV, ADO, CDOEx. ... If the Exchange server is not on the same server as your contact management ...
    (microsoft.public.exchange.development)
  • Re: mail and contact sychronisation ???
    ... Because you say you're seeing a local Inbox and an Exchange Server Inbox, I'm thinking you have Outlook configured to use both the server mailbox and a local PST file. ...
    (microsoft.public.windows.server.sbs)

Loading