Setting a timeout

J

John Bailo

I have a program that does an automated login to Outlook, does some
parsing of emails and closes.

There have been some issues with my Exchange server lately, such that it
will throw the username/password prompt when logging in. This seems
to be hanging my program because it is waiting for some type of user
input that the program is not designed to deliver. It occurs at:

objFolder.Logon("username", "password", false,true);



Questions:

1) Is there a way to set a Timeout on the .Logon method?
2) Is there a way to detect the popup dialog box and close it.


At the point that the username/password dialog appears, I know there is
a problem with Outlook and the correct procedure would be to wait and
try again later.

Any suggestions appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top