Outlook Automation - Security Warnings
I know this is a duplicate of this Question, but it was asked over a year ago. Things changed and maybe there is "a real answer" nowerdays - so here it comes;
How to avoid those security warnings, when using autolook au开发者_高级运维tomation when sending mails (using outlook 2007+)?Regards
EDIT: I checked the Trust Center, it tells me that my Anti-Virus is valid and the setting for security is set to "alert me when my anti virus is out of date". But i keep getting those annoying Popups.
Further i have to add that it already used to run without the messagebox, but after i added/modified some profiles the popups began. I did NOT change any code! Any ideas?
A 3rd Party component is an option, but i would like to avoid it whenever possible.
In Outlook 2007, go to Tools > Trust Center > Programmatic Access and select "Never" to turn off the prompt.
There are definitely ways around the problem by going at a lower level that the traditional COM Automation API for MSO. These guys do the work for you: http://www.add-in-express.com/
Worth a check: Outlook Send E-mail Without Security Warning
Still need Redemption
You can use CDO for it. and you can check outlookcode for your problem.
Edit:
As @mz224, said you can disable it in 2007, but if you want install in computers is not good to do this, In all I have a big challenge on it, three years ago, I didn't find any good way for 2003, and 2007 was new, see this article, there was too many problem with Marshal.ReleaseComObject
, Since 2007 outlook redesigned, and Object model
added, many things became easier but In 2007 I didn't test above solution.
精彩评论