Outlook not connected to server?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

I'm working with an Outlook object and I, thru VB code, execute menu option
"Purge All Items" (which deletes all "marked for deletion" emails from the
MAPI folder on the server and in outlook).

Outlook then complain about that it can't complete that action since outlook
is not connected to the server... even though I am connected to the
internet. How do I make outlook be "connected to server" without running a
"Send/receive"?

Best Regards
/Lars Netzel
 
HI

Hi, well yeah that's my question.. how do I reconnect to the server without
synchronizing the emails.. withoutdownloaded new emails and withoutsending
anything.

/Lars
 
Lars said:
I'm working with an Outlook object and I, thru VB code, execute menu option
"Purge All Items" (which deletes all "marked for deletion" emails from the
MAPI folder on the server and in outlook).

Outlook then complain about that it can't complete that action since outlook
is not connected to the server... even though I am connected to the
internet. How do I make outlook be "connected to server" without running a
"Send/receive"?

Best Regards
/Lars Netzel

I've never used the outlook object thru VB before, but you either need
change the timout to be larger, or run a command to Get Message Headers.
That will re-connect you. Or you might be able to force a re-connect
before you run the purge all items function.

I can look into the code for you if you like, but you sound like you
would be able to figure it out yourself.
 

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

Back
Top