G
Gordon Prince, MCP
I've had an application that creates a cdoSession from Outlook in an environment with an Exchange 2000 server. Now I'm trying to get the same application to create a cdoSession in an environment that doesn't have Exchange 2000 server.
Here's the code:
sub SubName(cdoMessage as MAPI.Message)
Dim cdoSession As MAPI.Session
Dim cdoMessage2 As MAPI.Message
Set cdoSession = cdoMessage.Session
cdoMessage2.Sender = cdoSession.CurrentUser
...
In the Exchange environment cdoSession.CurrentUser is a valid object.
In the non-Exchange environment, cdoSession.CurrentUser = "unknown".
I've looked through the help files & the newsgroup history but for the life of me can't figure out how to set cdoMessage2.Sender. Any ideas?
Thanks.
Here's the code:
sub SubName(cdoMessage as MAPI.Message)
Dim cdoSession As MAPI.Session
Dim cdoMessage2 As MAPI.Message
Set cdoSession = cdoMessage.Session
cdoMessage2.Sender = cdoSession.CurrentUser
...
In the Exchange environment cdoSession.CurrentUser is a valid object.
In the non-Exchange environment, cdoSession.CurrentUser = "unknown".
I've looked through the help files & the newsgroup history but for the life of me can't figure out how to set cdoMessage2.Sender. Any ideas?
Thanks.