Solved

VB.NET disable Outlook Security message

Posted on 2011-09-08
2
430 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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 …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 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