MAPI Session Problem - Getting Profile?
If you know the profile ID/name (Windows Messaging) then try this.
It should return a valid Session ID without an interface.
MapiSess.Username="supply a valid profile name/ID"
MapiSess.Action= 1 '(mapSignOn)
Hope this helps
> How do I specify which profile the session object should use?
> When I set the NewSession property to true the SignOn method errors
> with a Logon failure error. If I set the LogonUI property to true the
> login dialog is displayed and I can select the profile and logon no
> However, the code needs to run as an NT Service (No UI)
> Hence, my question is, how do I specify which profile to use so I
> don't get the prompt?
> Many Thanks
> Darren Lewis
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.