ringus


Hi,

I have looked everywhere but no luck. I really need to be able to read messages and save attachments from an inbox. I have only managed to open up my own inbox which is no use.

Dim oApp As Outlook.Application = New Outlook.Application()

Dim oMsg As Outlook.MailItem

Dim oAtt As Outlook.Attachment

Dim oNS As Outlook.NameSpace = oApp.GetNamespace("mapi")

Dim i As Integer

Dim x As Integer

Dim oInbox As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)

Dim oItems As Outlook.Items = oInbox.Items

Dim count As Integer = oItems.Count

Dim deletefile, savefile As Boolean

oNS.Logon("DevTest", "password", False, True)

I was hoping the ons.logon whould log me on to the "devTest" inbox but i guess the

Dim oInbox As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)

is opening up my own default inbox how can I open up the dev test inbox

many thanks



Re: REading emails from exchange 2000

Riquel Dong ¨C MSFT


Hi,

Based on your post, you want to read emails from exchanger server 2000. Here is one good example. It Uses MAPI to login, list emails and select emails and display them. You can find a code snippet which outlines a little mechanism to read email using Outlook while at the same time. It avoids the security patch using Outlook Redemption component. For more information about this code example, visit here.

Hope this helps.

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.