Outlook 2003 and VB application and Authenticating to Two Domains

S

SkyEyes

Our Outlook is in domain AAAA
Application is run from an ID from domain BBBB

The application is coded with the Outlook API and works fine when the person
has Outlook already open, because when he opens, it prompts him for his
ID/password to log into the Outlook domain. Once this is established, the
application runs with the userid and password of the mailbox.

The problem we are having is this application is run on a server and we will
not be opening Outlook. So we need some code to pass through an
authentication to the AAAA domain from the BBBB domain to establish a
connection to log in with an ID and password.

Anyone have anything??

Here is some code of what we are using.

'''''''''''''''''''''''''''''''''''''
' Microsoft Office Outlook Access '
'''''''''''''''''''''''''''''''''''''
Dim oApplication As Outlook.Application
Dim oNameSpace As Outlook.NameSpace
Dim oInbox As Outlook.MAPIFolder
Dim eMail As Outlook.MailItem
Dim oAttachment As Outlook.Attachment

Set oApplication = New Outlook.Application
Set oNameSpace = oApplication.GetNamespace("MAPI")
oNameSpace.Logon "Julies", "QQQQQ", False, True

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top