Hi I'm trying to write an app that will logon to Exchange 2000. Go to a specified user's Calendar folder, read the current day's apointment subject and text properties and then mail them to an email address.
The problem that I am running into is I'm getting a permission error (You do not have permission to logon) in the following line:
My session login looks like this:Code:Set oCalendarFolder = oSession.GetDefaultFolder(CdoDefaultFolderCalendar)
The app works only if I or the user who's name is specified in the mailbox logs on to the network. If someone else logs on to the network or if I change the mailbox name to someone else's, then I get the error I stated previously. I've added the correct profile password (network password) to the above line and I still get the same error.Code:oSession.Logon ProfileInfo:="PROXY" & vbLf & "Jack Vinitsky"
I was hoping to hardcode the passwords in the program and then pass the mailbox name in a command line arguement. Thus the program could be scheduled to run on its own.
Any insight would be greatly appreciated.
Jack


Reply With Quote