cancel
Showing results for 
Search instead for 
Did you mean: 

Send/Receive Outlook mail box

zemanek
Level 3
Hi all, I am currently struggling with refreshing/updating Outlook mailbox. I need to send a couple of mails with attachments. I do it in a loop. After the loop is finished I close Outlook. The problem is that the mails don€™t get sent because the outlook closes right after the loop. If I leave the Outlook open, the mails are sent correctly, but I need to close the outlook. How can I check whether send/receive in Outlook is completed? Thanks.
4 REPLIES 4

RameshDornala
Level 2
Will it be possible to give 90 seconds wait before closing outlook

zemanek
Level 3
Thanks RDornala, but that doesn't solve the issue very much.

zemanek
Level 3
If anyone is interested, the solution I ended up with is creating an action in Outlook VBO. The action checks number of items in Outbox (using VB in code stage) and waits until the Outbox is empty (or the given time is elapsed, to avoid infinite loop).

MikeHiggs
Level 5
Are you integrating with Outlook through the UI or through MAPIEx? The reason why I asked is the retrieving and sending emails directly from the MS Exchange is so much more efficient and faster... you will not need a significant sleep stage either. Read the User guide to MAPIEx thanks Mike