No, that password is only used by the PST provider.
There is no way to bypass the login dialog if the current user and Exchange
are on different domains with no trust, at least not when using the Outlook
Object Model.
You can use LogonUser/ImpersonateLoggedOnUser in case of CDO 1.21 or
Extended MAPI, but that won't work with OOM as it runs in a separate process
space (outlook.exe), not in-proc. Plus it needs to see the profile to be
able to log in; and the profiles are stored on a per Windows user basis.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Dan Mitchell" <(E-Mail Removed)> wrote in message
news:Xns966974CFB4ABDdjmitchellayahoocom@207.46.248.16...
> Bernie <bsiATmsiagDOTch> wrote in news
p.srq1v5qrqhgd8h@pc-bsi:
>> Thank you, but that's not exactly what I'm looking for. The Exchange
>> login is different from the Windows login, in fact the client and the
>> server aren't even on the same domain.
>
> Oh, I see. Maybe this is one of the cases where the profilePassword
> argument to CDO1.21's Session.Logon() / lpszPassword to MAPILogonEx would
> be useful -- it would certainly be worth a try, at least.
>
> -- dan
>