I have some VB.NET code that gets the first selected mail item in outlook, and saves this to disk (See code below.).
This all works ok, except everytime the code runs, the outlook security message appears (see screen shot).
Is there any way is disabling this?
Any help would be appreciated.
Private sub SaveOutlookItem()
Dim outlook As New Microsoft.Office.Interop.Outlook.Application
Dim explorer As Outlook.Explorer = outlook.ActiveExplorer
Dim mail As Outlook.MailItem = CType(explorer.Selection.Item(1), Outlook.MailItem)