Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO Session.Logon still prompts for a password 1

Status
Not open for further replies.

markharr

Vendor
May 21, 2001
87
AU
I guess I'm doing something wrong but I can't quite figure this out.

I have referenced "Microsoft CDO 1.21 Library" in my application and when I execute the following code, I am prompted with the domain logon even though I have provided the profile and the password.

Dim objSession As MAPI.Session
Set objSession = CreateObject("MAPI.Session")

On Error GoTo logonErr

If Not objSession Is Nothing Then
' domain logon appears on execution of next line.
objSession.logon profileName, password
End If

logon = True
Exit Function
logonErr:
logon = False

I'm probably doing something wrong or I am barking up the wrong tree so I would appreciate someone setting me straight as I am new to CDO.

Thanks
 
[tt]
objSession.Logon profileName, password, False, False, 0
[/tt]

Craig, mailto:sander@cogeco.ca

In the computer industry, there are three kinds of lies:
lies, damn lies, and benchmarks.
 
Ah, I see what I have done now. I failed to CTFM (Comprehend The Flaming Manual) :) I didn't make the connection that you have drawn.

Thanks, that is very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top