Article ID: 288775 - View products that this article applies to.
This article was previously published under Q288775
This article has been archived. It is offered "as is" and will no longer be updated.
When you use MAPI or CDO to log on to an Exchange server, a dialog box prompts you for credentials. This dialog box has the caption "Enter Password" and fields for "User Name", "Domain Name", and "Password".
The account that the code is running under is in a domain that is not trusted by the Exchange Server's domain, or is not logged on to a domain at all.
MAPI and CDO rely on the Exchange Message Store (EMS) provider to communicate with Exchange. The EMS provider uses the credentials of the user that is currently logged on to establish a remote procedure call (RPC) connection with the Exchange server. If these credentials are insufficient to establish the RPC connection, the provider prompts the user for additional credentials. There is no way to pass credentials to the provider programmatically.
There are three ways to avoid this dialog box:
Article ID: 288775 - Last Review: February 28, 2014 - Revision: 3.5
Contact us for more help
Connect with Answer Desk for expert help.