I created the Outlook 2007 AddIn, which, among other things, has to do some things when a user creates a new email. I connected to the relevant events, and everything works correctly in all cases except one.
The problem is that if Outlook is not running and the user clicks the mailtoURL, then Outlook opens only one explorer in which the user can compose an email. Other parts of the application do not load at this time. The problem is that in this case my plugin does not load, so I can not add my code there.
I would like to know if there is a way to overcome this problem.
I see two possible solutions, but I do not know if they are possible.
- Make loading plugins via mailto links (one explorer mode). I suspected that this would be provided by VSTO out of the box, but it is not. I could not find anything about this in MSDN and in the MS Outlook book.
- Change the mailto URL handler on the client computer to run full Outlook (for example, you click Outlook Shortcut), and not just Explorer. This would download my plugin before opening the email explorer and would probably work as I intended.
Does anyone know if any of these solutions are possible? Or maybe you have another that might work.
source
share