I don't think you can do this with the MAPI control. I will investigate other ways. I can easily test this as my laptop is connected to Exchange in daytime and not on evenings so I get the same message whenever I open Outlook without network connection.
>I downloaded your MAPI class, MAPIMAIL.ZIP from the files section, that has the method isserverloaded in it. But the
> error is coming from the method Createsession on the command THIS.oSession.SignOn(). If I am not connected to
> the network, I get the exchange box of do you want to work offline . What I was hoping to do, is surpress this box
> and capture the error. If I know that the error occured, then I will store the emails to a database and send the
> messages at a later time.
>
> Thanks for the help