Solved

VB.NET disable Outlook Security message

Posted on 2011-09-08
2
424 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
ID: 36504007
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
ID: 36506119
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

15 Experts available now in Live!

Get 1:1 Help Now