Solved

VB.NET disable Outlook Security message

Posted on 2011-09-08
2
422 Views
Last Modified: 2012-05-12
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. Outlook Sec Msg
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)
    mail.SaveAs("P:\test.msg")
End Function

Open in new window

0
Comment
Question by:bmsdev
2 Comments
 
LVL 13

Expert Comment

by:khairil
Comment Utility
Hi,

You can turn this off from outlook itself, here is how to do, http://msdn.microsoft.com/en-us/library/ms778202.aspx

Or using GPO if your user join the AD domain, http://technet.microsoft.com/en-us/library/cc179085(office.12).aspx
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
I use this free addin which allows the user to choose "Always perform this action for this file"

http://www.mapilab.com/outlook/security/
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now