cancel
Showing results for 
Search instead for 
Did you mean: 

How do I initiate a receive email action for outlook

Highlighted
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
Highlighted
Community Hero

Re: How do I initiate a receive email action for outlook

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

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

Highlighted
Occasional Contributor

Re: How do I initiate a receive email action for outlook

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)?

 

 

Tags (1)
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors