PC Review


Reply
Thread Tools Rate Thread

connection to remote exchange server in MAPI session

 
 
=?Utf-8?B?dG9rZW4=?=
Guest
Posts: n/a
 
      24th Feb 2005
I am trying to connect to a remote exchage server in order to retrieve emails
and process them. My problem is that I have no idea how to connect to the
remote exchange server.

I have the following code and I think that after I create the namespace I am
supposed to used the logon method to connect to the remote server but am
unser as to how it would look:

' Create Outlook application.
Dim oApp As Outlook.Application = New Outlook.Application
' String used for comparison with mail item.
Dim sClassComp = "IPM.Note"

' Get Mapi NameSpace.
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")

' Get Messages collection of Inbox.
Dim oInbox As Outlook.MAPIFolder =
oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
Dim oItems As Outlook.Items = oInbox.Items

Any help would be greatly appreciated

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending E-mails through MAPI to Exchange Server Pete Microsoft Outlook Discussion 1 8th Jun 2004 03:43 AM
How to use Remote Desktop Connection to connect to console session of Win 2K server? Daniel Lim Windows XP Work Remotely 3 30th Mar 2004 02:26 AM
Remote connection VERY slow when connecting to Exchange server VY Windows XP Work Remotely 3 26th Mar 2004 04:21 AM
Remote connection VERY slow when connecting to Exchange server VY Microsoft Outlook 0 25th Mar 2004 07:03 PM
Remote connection VERY slow when connecting to Exchange server VY Microsoft Windows 2000 Networking 0 25th Mar 2004 07:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:20 PM.