Ask a Question

How do I initiate a receive email action for outlook

kevin_kapell
Frequent Contributor

How do I initiate a receive email action for outlook

I have all the code working for connecting to outlook and checking emails. However I am running into a timing issue where I get the email Inbox count & contents before the email is delivered to the outlook account.

 

Is there a way to force the receive commend in outlook without using the outlook GUI?

2 REPLIES 2
Marsha_R
Community Hero

Support may be able to help you with this.  You can contact them directly with this link:

https://support.smartbear.com/testcomplete/


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
Duess
Occasional Contributor

I have never done this with automation scripts.  However, in the Outlook GUI you are able to just hit the [F9] key and it will do a Send/Receive of All folders (or this is also a clickable button that triggers the action as well). 

 

Shot in the dark here, but would it possibly be as simple as using Keys(F9) then a Delay(2000) in the script (assuming the GUI is already open & active)?

 

 

cancel
Showing results for 
Search instead for 
Did you mean: