Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I've been asked to develop a program which will reply to unread emails in Outlook 2010. My background is a VB programmer and I have been asked to develop in C#, so please forgive me for being a newbie (only had 2 weeks c# experience at this point).

I have sucessfully made the program, however for every email it send the user has to click on Outlooks Security Windows, advising the user that a program is trying to send an email on their behalf.

I have been looking online for a solution, but to no avail. I cannot change the registry keys of the machines to get around this, nor can i download additional software, it will have to be done within the program.

As this is in automated process, it would be acceptable for the program to wait the five seconds and click the yes button, for that I would need to get the handle.

I am aware of the FindWindow and FindWindowEx functions in user32.dll, unfortunatly the MSDN articles havent been as straight forward as I would like them to be.

Thanks in advance.
Posted

1 solution

 
Share this answer
 
Comments
AndyOT 15-Jul-14 10:05am    
Thank you Maciej, in the end I have written a solution which waits in the background and closes these pop ups. Its still not working 100% of the time but I'm getting there. Then I'll have to learn threading to have it run in the background
Maciej Los 15-Jul-14 10:27am    
You're welcome, Andy ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900